Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

TypeScript Essential Training

via LinkedIn Learning

Overview

Discover how to leverage the full power of the TypeScript language in JavaScript applications.

TypeScript lets you write JavaScript the same way you always do. That’s because TypeScript compiles to plain JavaScript and works with any browser, any host, and any operating system. It adds a variety of helpful tools and syntax to an already mature language, bringing the power and productivity of open-source, object-oriented development to fully compatible, core JavaScript.

In this course, Jess Chadwick teaches you how to leverage the full power of the TypeScript language in your JavaScript applications. Revisit some of the JavaScript fundamentals before turning to the data types, classes, generics, modules, and decorators that are unique to TypeScript. Get tips on defining complex types, extending and extracting metadata from existing types, and working with JavaScript modules to make your code more efficient. You can even try out your new TypeScript skills with the practice challenges along the way.

Syllabus

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

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

Taught by

Jess Chadwick

Reviews

Start your review of TypeScript Essential Training

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.