Learning paths · Skills · Intermediate

TypeScript: what the types really do

What the checker actually knows, and what it can't: erased types, structural matching, inference and narrowing, unions and generics, strictness, the build, and the runtime data no type can check.

0 of 11 done

The map

  • Not started
  • In progress
  • Done
  1. 01The compilerChecks, then erases0/3
  2. 02Modelling dataUnions, the edge types, generics0/3
  3. 03Types from typeskeyof, mapped, conditional0/1
  4. 04In a real projectStrictness, declarations, the build, boundaries0/4
  5. 05Next: system designSame ideas, at service scale

Everything here is about TypeScript 5.x with strict on. The examples have been type-checked with TypeScript 5.9; the js run examples are what the code does after its types are erased. The declarations and build topics build on the JavaScript path's topic on modules.

Where this path leads