Add static types to JavaScript, from basic annotations to generics, utility types, modules and tooling.
A preview of each phase. Sign in and start the roadmap to see every topic.
See how TypeScript relates to JavaScript, then install, configure and run it.
Learn the built-in types and the ways to assert a type when the compiler cannot infer it.
Let the compiler infer types, combine them into new ones and narrow them safely.
Type functions properly and describe object shapes with interfaces.
Write typed classes with access modifiers, abstraction and overriding.
Write reusable code with generic types and annotate classes with decorators.
Reshape existing types quickly with the built-in utility types.
Build types programmatically with mapped, conditional, literal and recursive types.
Organise code with modules and namespaces and extend existing type declarations.
Round out your setup with formatting, linting, handy packages and build tools.