TypeScript

TypeScript + React in Practice #1: Getting Started and Setup
4 min read

TypeScript + React in Practice #1: Getting Started and Setup

Why use TypeScript with React, plus building a React + TS project with Vite and adding types to your first component — all in one go.

TypeScript Basics #7: Utility Types and tsconfig
5 min read

TypeScript Basics #7: Utility Types and tsconfig

Standard utility types you will use every day (Partial/Pick/Omit/ReturnType, etc.) and the key tsconfig.json options that control compile behavior — wrapping up the series.

TypeScript Basics #6: Generics in Depth
4 min read

TypeScript Basics #6: Generics in Depth

Tools that draw out the real expressive power of generics — constraints, multiple type parameters, generic interfaces/classes, keyof, and indexed access types.

TypeScript Basics #5: Function Types
5 min read

TypeScript Basics #5: Function Types

How to express function types precisely — optional/default/rest parameters, function signatures, overloads, and a first encounter with generics.

TypeScript Basics #4: Union / Literal / Narrowing
5 min read

TypeScript Basics #4: Union / Literal / Narrowing

Union types and literal types for expressing values that are one of several possibilities, plus narrowing patterns to refine the type inside branches — all in one place.

TypeScript Basics #3: interface and type alias
5 min read

TypeScript Basics #3: interface and type alias

Two tools for naming and reusing object types — interface and type alias — how to use them, the differences, and when to pick which.

TypeScript Basics #2: Basic Types
4 min read

TypeScript Basics #2: Basic Types

The basic types you will use every day — string, number, boolean, array, tuple, object, enum, any/unknown — all in one place.

TypeScript Basics #1: Getting Started and Setup
8 min read

TypeScript Basics #1: Getting Started and Setup

What TypeScript is, why you would use it, and how to compile and run your first piece of code — all in one go.