Learn6 lessons
TypeScript
Types on top of JavaScript, from annotations to the narrowing that makes the compiler useful rather than noisy.
In this course
- Types and inferenceWhat you annotate, what the compiler works out for itself, and why any is a hole.6 min
- Unions and narrowingA value that is one of several things, and how to prove which one it is.7 min
- Interfaces and type aliasesTwo ways to name a shape, and the one difference that decides which to use.6 min
- GenericsWriting a function once without throwing away what it was given.7 min
- Promises and asyncWork that finishes later, and the try/catch that never catches.7 min
- Strict modeThe compiler flags that turn TypeScript from decoration into a safety net.6 min