TypeScript
Add a type system to JavaScript so mistakes surface while you write, not in production. Each course below is independent -- start with whichever one fits what you want to learn.
TypeScript Foundations
Add a type system to JavaScript: catch mistakes while you write, and model data so wrong states cannot be represented.
12 lessons5hintermediate
- 1. Why Types? From JavaScript to TypeScript
- 2. Inference and the Primitive Types
- 3. Typing Arrays and Objects
- 4. Interfaces and Type Aliases
- 5. Union Types and Narrowing
- 6. Optional Fields and Nullability
- 7. Typing Functions
- 8. Generics
- 9. Utility Types
- 10. Literal Types and const Assertions
- 11. unknown, Type Guards, and Safe Assertions
- 12. Modelling a Domain So Wrong States Cannot Exist