Discover how to leverage the full power of the TypeScript language in JavaScript applications.
Overview
Syllabus
Introduction
- Learning TypeScript
- Why TypeScript?
- Sample code and other online resources
- 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
- 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
- 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
- Extending and modifying existing types
- Extracting metadata from existing types
- Challenge: The right type
- Solution: The right type
- What are decorators and why are they helpful?
- Creating a method decorator
- Creating decorator factories
- Creating a class decorator
- Creating a property decorator
- Module basics
- Share code with imports and exports
- Defining global types with ambient modules
- Declaration merging
- Executing modular code
Taught by
Jess Chadwick