Description
In this course, you will learn :
- How to use a powerful and enjoyable programming language to create browser applications faster and with fewer errors. First, you'll discover how to set up TypeScript projects.
- How to make and use your own types.
- How to get strong typing support for almost any JavaScript library you can think of.
- When you finish this course, you'll have a solid understanding of TypeScript's key features, as well as the skills required to start building client-side web applications and NodeJS applications with TypeScript.
Syllabus :
1. Installing TypeScript and Configuring a Project
- Demo: Project Overview
- Demo: Installing TypeScript and Running the Compiler
- Using Project Files
- Demo: Configuring Compiler Options in tsconfig.json
- Demo: Configuration Inheritance and Glob Support in tsconfig.json
- Demo: Compiling with Webpack
2. Taking Advantage of Built-in Types
- Basic Types and Variable Declarations
- Type Annotations and Type Inference
- Demo: Using let and const with Type Annotations
- Additional Built-in Types
- Union Types and the --strictNullChecks Compiler Option
- Type Assertions
3. Writing Better Functions with TypeScript
- Adding Type Annotations to Functions
- Using the --noImplicitAny Compiler Option
- Default-initialized Parameters
- Demo: Adding Type Annotations to Parameters and Return Values
- Demo: Adding Type Annotations and Default Parameter Values
- Anatomy of an Arrow Function
4. Creating and Using Custom Types
- Interfaces vs. Classes
- Creating an Interface
- TypeScript's Structural Type System
- Demo: Creating Interfaces
- Class Members
- Extending Classes and Implementing Interfaces
- Demo: Creating Classes
- Demo: Configuring a Project with Multiple Source Files
- Static Members
- Constructors
5. Creating and Consuming Modules
- Why Use Modules?
- Supporting Technologies
- Exporting and Importing
- Demo: Converting the Demo App to Use Modules
- Relative vs. Non-relative Imports
- Module Resolution Strategies
- Module Resolution Examples
6. Being More Productive with Type Declaration Files
- What Are Type Declaration Files?
- DefinitelyTyped
- Installing Type Declaration Files