Learning TypeScript

Learning TypeScript

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 08m | 184 MB

TypeScript adds discipline to JavaScript development. You can find errors in your code before you execute it, and leverage productivity enhancements like variable and property renaming. Despite its many parts—types, annotations, interfaces, and classes—adding TypeScript to your workflow doesn’t have to be difficult. Join web developer Jess Chadwick as he walks you through the foundations, helping you set up TypeScript and use it in simple ways to improve existing JavaScript projects. Learn how to define custom types, convert existing JavaScript classes to TypeScript classes, and encapsulate your logic and data with access modifiers. Plus, find out how to reuse code with generics, type check files, and add type support for APIs. Using these techniques, you can become a more productive, efficient JavaScript developer.

Topics include:

  • Adding TypeScript to an existing app
  • Describing code with types
  • Defining custom types
  • Converting JavaScript classes to TypeScript
  • Encapsulating logic and data
  • Reusing logic with generics
  • Type checking
  • Adding type support for APIs
Table of Contents

Introduction
1 Welcome to Learning TypeScript
2 What is TypeScript
3 Who s this for
4 Exercise files
5 Setting up the development environment
6 Sample application

The Basics
7 Adding TypeScript to an existing application
8 Describing your code with types
9 Understanding type inference and gradual typing

Defining Custom Types
10 Defining custom types with interfaces
11 Enhancing interface definitions
12 Restricting possible values with enums and literal types
13 Allowing a variable to be multiple types

Classes
14 JavaScript classes overview
15 Converting JavaScript classes to TypeScript
16 Encapsulating logic and data with access modifiers

Expanding and Improving Type Support
17 Reusing common logic with generics
18 Type checking JavaScript files
19 Adding type support for native APIs
20 Adding type support for third-party APIs

Goodbye
21 Next steps
22 Conclusion