Introduction
Learning TypeScript
()
Why TypeScript?
()
Sample code and other online resources
()
1. Introducing TypeScript to Your Application
Installing TypeScript
()
Adding TypeScript to an existing solution
()
Adding type checking to JavaScript files
()
Importing third-party types
()
Challenge: JavaScript to TypeScript
()
Solution: JavaScript to TypeScript
()
2. Basic TypeScript Usage
Primitives and built-in types
()
Creating custom types with interfaces
()
Defining types using type aliases
()
Defining enumerable types
()
Typing functions
()
Defining a metatype using generics
()
Challenge: Types
()
Solution: Types
()
3. Defining More Complex Types
Combining multiple types with union types
()
Keyof operator
()
Typeof operator
()
Indexed access types
()
Defining dynamic but limited types with records
()
Resource management with the using keyword
()
4. Extending and Extracting Metadata from Existing Types
Extending and modifying existing types
()
Extracting metadata from existing types
()
Challenge: The right type
()
Solution: The right type
()
5. Adding Dynamic Behavior with Decorators
What are decorators and why are they helpful?
()
Creating a method decorator
()
Creating decorator factories
()
Creating a class decorator
()
Creating a property decorator
()
6. Working with Modules
Module basics
()
Share code with imports and exports
()
Defining global types with ambient modules
()
Declaration merging
()
Executing modular code
()