Chapters - Table of contents →
This training wrap-up can be used as a _cheat-sheet _for TypeScript, you'll find all the essential knowledge required to use TypeScript at scale:
Simple types
Essentials scalars, arrays, union types (|) and literal string union.
Typing objects with interface. Remember, interfaces are closed by default and properties don't include null and undefined by default!
Typing a React component is easy, however, beware of argument destructuring and inline interfaces combined!
Function overloads and Generics
Function overloads and Generics helps make functions more flexible.
Advanced Generics helps to make functions requirements more explicit and flexible.
Mapped types
Extend existing types by leveraging type helpers instead of duplicating code.
Leverage Mapped types to build your own type helpers
The TypeScript type helpers to keep in mind at all time.