Getting Started with TypeScript
TypeScript is a powerful, fun, and popular programming language used for building browser and NodeJS applications. This course will teach you all of the most important features of TypeScript, and quickly make you productive with the language.
What you'll learn
Creating great web applications requires great JavaScript code. TypeScript helps you create great JavaScript code. In this course, Getting Started with TypeScript, you'll learn how to create browser applications faster and with fewer errors using a powerful and fun programming language. First, you'll learn how to configure TypeScript projects. Next, you'll explore how to create and use your own types. Finally, you'll discover how to get strong typing support for just about any JavaScript library you can imagine. When you're finished with this course, you'll have a foundational understanding of TypeScript's most important features, as well as the skills you need to begin building client-side web applications and NodeJS applications with TypeScript.
Table of contents
- Introduction 1m
- Course Overview 1m
- Demo: Installing TypeScript and Running the Compiler 9m
- Using Project Files 3m
- Demo: Configuring Compiler Options in tsconfig.json 7m
- Demo: Configuration Inheritance and Glob Support in tsconfig.json 4m
- Demo: Compiling with a Visual Studio Code Build Task 3m
- Summary 1m
- Introduction and Overview 1m
- Basic Types and Variable Declarations 3m
- Type Annotations and Type Inference 2m
- Demo: Using let and const with Type Annotations 5m
- Additional Built-in Types 2m
- Union Types and the --strictNullChecks Compiler Option 3m
- Type Assertions 2m
- Demo: Writing Better Code with the --strictNullChecks Option 8m
- Demo: Understanding Control Flow-based Type Analysis 3m
- Summary 2m
- Introduction and Overview 1m
- Adding Type Annotations to Functions 3m
- Using the --noImplicitAny Compiler Option 1m
- Default-initialized Parameters 1m
- Demo: Adding Type Annotations and Default Parameter Values 10m
- Anatomy of an Arrow Function 5m
- Demo: Converting a Traditional Function to an Arrow Function 3m
- Demo: Taking Advantage of Function Types 3m
- Summary 1m
- Introduction and Overview 1m
- Interfaces vs. Classes 4m
- Creating an Interface 2m
- TypeScript's Structural Type System 2m
- Demo: Creating Interfaces 5m
- Class Members 4m
- Extending Classes and Implementing Interfaces 2m
- Demo: Creating Classes 4m
- Demo: Configuring a Project with Multiple Source Files 8m
- Static Members 2m
- Constructors 3m
- Demo: Refactoring the Demo App with Classes 8m
- Summary 1m
- Introduction and Overview 1m
- Why Use Modules? 1m
- Supporting Technologies 2m
- Exporting and Importing 6m
- Demo: Converting the Demo App to Use Modules 7m
- Relative vs. Non-relative Imports 2m
- Module Resolution Strategies 2m
- Module Resolution Examples 5m
- Demo: Configuring Module Resolution 8m
- Demo: Configuring a Module Loader 4m
- Summary 1m