← All roadmaps
Web · High demand

TypeScript roadmap

TypeScript is now the default for professional web development. It adds type safety to JavaScript, reduces production bugs, and is expected in most React and Node.js job descriptions.

beginner

Types, Interfaces & the Compiler

About 4 weeks

Topics

  • Why TypeScript: types vs plain JavaScript
  • Basic types: string, number, boolean, arrays, tuples
  • Interfaces vs type aliases
  • Functions: parameter and return types
  • Union, literal, and optional types
  • Enums and type narrowing
  • Setting up tsc, tsconfig, and VS Code
  • Compiling and fixing your first type errors

Free resources

Hands-on practice

  1. Convert a small JavaScript project to TypeScript file by file
  2. Model a todo app's data with interfaces and typed functions
  3. Write typed utility functions (debounce, deep-clone)
  4. Fix 20 compiler errors in a provided broken codebase
Milestone checkpoint: You write TypeScript without 'any' escapes in small projects, read compiler errors and fix them quickly, and can explain interfaces vs types to a peer.
intermediate

Generics, Advanced Types & Tooling

About 6 weeks

Topics

  • Generics: functions, classes, and constraints
  • Advanced types: mapped, conditional, template literal
  • Discriminated unions and exhaustive checking
  • Type guards and assertion functions
  • Working with third-party types and DefinitelyTyped
  • Linting and formatting: ESLint + Prettier for TS
  • Declaration files and publishing types
  • Strict mode and noUncheckedIndexedAccess

Free resources

Hands-on practice

  1. Solve 15 type-challenges from easy to medium
  2. Build a typed API client with generics and discriminated unions
  3. Add strict TypeScript to a React app and eliminate all implicit any
  4. Write a small typed library with declaration files
Milestone checkpoint: You model real domain logic with generics and advanced types, enable strict mode without fear, and your pull requests rarely need type-related review comments.
advanced

Type-Level Programming & Large Codebases

About 8 weeks

Topics

  • Type-level programming: recursive types, inference tricks
  • Designing type-safe APIs and SDKs
  • Monorepos: project references and shared configs
  • Performance: tsc bottlenecks and isolatedModules
  • Testing types with expect-type and tsc --noEmit
  • Design patterns with types: builders, branded types
  • Migrating large JS codebases to TS incrementally
  • Contributing types to DefinitelyTyped

Free resources

Hands-on practice

  1. Build a type-safe query builder with fluent branded types
  2. Migrate a 5k-line JS codebase to strict TS in staged PRs
  3. Create a shared types package used by two apps in a monorepo
  4. Solve 5 hard type-challenges
Milestone checkpoint: You design type-safe libraries others consume, keep large TS codebases compiling fast, and can whiteboard how a complex generic type resolves step by step.

Track your progress

Sign in to mark stages complete and watch your roadmap fill up on your dashboard.

Sign in