Advanced TypeScript Fundamentals
Offered By: egghead.io
Course Description
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.
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
Related Courses
DEV201x: Introduction to TypeScriptMicrosoft via edX Developing Dynamic Web Applications Using Angular
Microsoft via edX Introduction to TypeScript 2
Microsoft via edX Multiplatform Mobile App Development with NativeScript
The Hong Kong University of Science and Technology via Coursera Angular Fundamentals
Microsoft via edX