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

egghead.io

Advanced TypeScript Fundamentals

via egghead.io

Overview

Using TypeScript in your project has never been easier than it is today. The TypeScript team has continually added features to allow you to reap the benefits of static typing while reducing the overhead to get there.
This course will teach you these new language features TypeScript has to offer. You'll use optional chaining, handle undefined behavior with the unknown type and assertion functions, create private classes, handle tuple (and other data types) types, as well as learn about conditional types.
You'll also learn how to prevent type widening with TypeScript's new const assertions and efficiently type string literals through the use of template literals.
All of these skills will be brought together into examples that Marius will show you how to apply these new TypeScript features to real-world problems.

Syllabus

  • Use the Optional Chaining Operator in TypeScript
  • Use the Nullish Coalescing Operator in TypeScript
  • Statically Type Unknown Values with TypeScript's unknown Type
  • Narrow the unknown Type with TypeScript's Assertion Functions
  • Perform null Checks with Assertion Functions
  • Create Private Class Fields Using TypeScript's private Modifier
  • Create Truly Private Class Fields Using the #fieldName Syntax
  • Encapsulate Truly Private Variables in a Closure
  • Ensure Initialization of Class Instance Properties in TypeScript
  • Declare Read-Only Array Types in TypeScript
  • Declare Read-Only Tuple Types in TypeScript
  • Prevent Type Widening of Object Literals with TypeScript's const Assertions
  • Prevent Type Widening of Array Literals with TypeScript's const Assertions
  • Implement and Type Enum-Style Objects in TypeScript
  • Implement a NonNullish Conditional Type in TypeScript
  • Implement a ReturnTypeOf Conditional Type in TypeScript
  • Statically Type String Literals with Template Literal Types in TypeScript
  • Use TypeScript's Mapped Types and Template Literal Types Together

Taught by

Marius Schulz

Reviews

4.8 rating at egghead.io based on 156 ratings

Start your review of Advanced TypeScript Fundamentals

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.