2022-10-11: Tackling TypeScript
- I Preliminaries
- II Getting started with TypeScript
- 4 How does TypeScript work? The bird’s eye view
- 5 Trying out TypeScript
- 6 Notation used in this book
- 7 The essentials of TypeScript
- 7.1 What you’ll learn
- 7.2 Specifying the comprehensiveness of type checking
- 7.3 Types in TypeScript
- 7.4 Type annotations
- 7.5 Type inference
- 7.6 Specifying types via type expressions
- 7.7 The two language levels: dynamic vs. static
- 7.8 Type aliases
- 7.9 Typing Arrays
- 7.10 Function types
- 7.11 Union types
- 7.12 Optional vs. default value vs.
undefined|T
- 7.13 Typing objects
- 7.14 Type variables and generic types
- 7.15 Example: a generic class
- 7.16 Conclusion: understanding the initial example
- 8 Creating CommonJS-based npm packages via TypeScript
- 9 Creating web apps via TypeScript and webpack
- 10 Strategies for migrating to TypeScript
- III Basic types
- IV Types for objects, classes, Arrays, and functions
- V Dealing with ambiguous types
- VI Miscellaneous