Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About This Book
About the Cover Illustration
1. Mastering the TypeScript syntax
Chapter 1. Getting familiar with TypeScript
1.1. Why program in TypeScript
1.2. Typical TypeScript workflows
1.3. Using the Typescript compiler
1.4. Getting familiar with Visual Studio Code
Summary
Chapter 2. Basic and custom types
2.1. Declaring variables with types
2.1.1. Basic type annotations
2.1.2. Types in function declarations
2.1.3. The union type
2.2. Defining custom types
2.2.1. Using the type keyword
2.2.2. Using classes as custom types
2.2.3. Using interfaces as custom types
2.2.4. Structural vs. nominal type systems
2.2.5. Unions of custom types
2.3. The any and unknown types, and user-defined type guards
2.4. A mini project