LEVEL 5 · TYPESCRIPT

Course Foundation

TypeScript

Add a type system to JavaScript: what TypeScript is and is not, everyday types and inference, unions and narrowing, interfaces, generics, classes, modules, tsconfig, and where types stop and runtime validation begins.

0 of 21 lessons done

Start lesson 1 →

When you finish, you can

  • Explain type erasure and why types never validate outside data
  • Type functions, objects, arrays and tuples, and know when to let inference work
  • Model domain states with literal and discriminated unions
  • Narrow unknown values safely with guards and assertion functions
  • Write generic functions, interfaces and classes
  • Configure a project with tsconfig.json and strict mode
  • Validate external data at runtime and return typed errors

You build: A typed task manager and a typed CLI calculator

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.