Free TypeScript Tutorials

25 free, hands-on TypeScript lessons from first lines of code to advanced patterns. Run every example directly in your browser — no install, no signup.

intermediate

Interfaces and Types

Master TypeScript interfaces and type aliases. Learn extending, intersection types, declaration merging, and when to use each.

22 min read
1 prerequisites

Generics

Write reusable, type-safe code with TypeScript generics. Learn generic functions, interfaces, classes, and constraints.

25 min read
1 prerequisites

Modules

Organize TypeScript code with ES modules. Learn named exports, default exports, type-only imports, re-exports, and barrel files.

20 min read
1 prerequisites

Error Handling

Learn robust TypeScript error handling with try/catch, custom error classes, the Result pattern, and type narrowing for caught errors.

20 min read
1 prerequisites

Utility Types

Master TypeScript utility types like Partial, Pick, Omit, and Record. Transform existing types without repetition.

22 min read
1 prerequisites

Type Narrowing

Learn TypeScript type narrowing with typeof, instanceof, in operator, discriminated unions, and user-defined type guards.

25 min read
2 prerequisites

Classes And OOP

Learn TypeScript classes and OOP with constructors, inheritance, access modifiers, and interfaces for type-safe object-oriented code.

28 min read
3 prerequisites

Async TypeScript

Master async/await in TypeScript with typed Promises, async functions, and error handling patterns for non-blocking, readable code.

27 min read
3 prerequisites

Type-Safe APIs

Build type-safe APIs in TypeScript with generic fetch wrappers, discriminated union responses, and runtime type guards.

25 min read
4 prerequisites

Debugging TypeScript

Learn to read TypeScript error messages, use the type system for debugging, write exhaustiveness checks, and apply runtime techniques.

25 min read
4 prerequisites