Advanced Static Types in TypeScript

1h 7m
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
1208
people completed
Bookmark
Download
RSS

This course explores the capabilities of TypeScript’s type system and shows how to use advanced static types in practice. For example, you’ll learn how to write safer code by using non-nullable types and being explicit about null and undefined in the type system.

You’ll also see how the compiler analyzes control flow to determine the most specific type for a variable at any given location.

In addition to that, you’ll learn about the readonly modifier and the special object and never types. This course also inspects string enums, literal types, discriminated unions, and static types for the rest and spread operators.

Finally, you’ll see how to type dynamic property access using the keyof operator and how to create new types by applying transformation functions to existing ones.

Instructor

Marius Schulz

Front End Engineer at Facebook. Microsoft MVP. Passionate about all things web!

Course content (13 lessons)

    illustration for Advanced Static Types in TypeScript