LEVEL 6 · TYPESCRIPT

Course Advanced

Advanced TypeScript

The type system in depth: type operators, utility, mapped, conditional and template literal types, inference, variance and branded types, then type-safe events, CQRS and dependency injection, decorators, declaration files, packages, monorepos, type-level tests and compiler performance.

  • 22 lessons
  • 20 h to read and try
  • Before this: TypeScript

0 of 22 lessons done

Start lesson 1 →

When you finish, you can

  • Derive types from values and other types with keyof, typeof and indexed access
  • Write mapped, conditional and template literal types, using infer
  • Choose between as, satisfies and as const
  • Model a domain with branded types and discriminated unions
  • Build type-safe event, command and dependency injection infrastructure
  • Write declaration files and publish a typed package
  • Test types, and keep a large project fast to compile

You build: A typed event bus, a typed dependency injection container and a typed command bus

Course checkpoint

Prove you can move on. The checkpoint picks 20 questions at random from every lesson in this course. Get 16 right to pass. Your result is saved in this browser only.