This book introduces modern TypeScript with strict compiler settings, ECMAScript modules, and examples that compile with the current TypeScript compiler. It assumes basic familiarity with JavaScript.
Contents
- What TypeScript is
- Installation and setup
- Basic syntax
- Hello world
- Core types
- Functions
- Classes
- Interfaces and structural typing
- Generics
- Strict null checks
- Type guards
- Arrays
- Enums and alternatives
- Modules
- Using JavaScript libraries
- Publishing declaration files
tsconfig.json- Decorators
- Mixins
- Unit testing
- Why use TypeScript?
- Contributors