Skip to content
JS

Advanced Static Types in TypeScript

Course on egghead by Marius Schulz

View on egghead (opens in a new tab)
1 h 8 min
LengthVideo runtime
Subscription
Price modelegghead plan
13
Lessons
4.8
Rating out of 562 ratings on egghead
Nov 2017
Published6 Nov 2017

About this course

Description from egghead

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.

What it covers

13 lessons
  1. 1Restrict null and undefined via Non-Nullable-Types in TypeScript
  2. 2Understand TypeScript’s Control Flow Based Type Analysis
  3. 3Define Custom Type Guard Functions in TypeScript
  4. 4Make Properties and Index Signatures Readonly in TypeScript
  5. 5Represent Non-Primitive Types with TypeScript’s object Type
  6. 6Use TypeScript’s never Type for Exhaustiveness Checking
  7. 7Overload a Function with TypeScript’s Overload Signatures
  8. 8Collect Related Strings in a String Enum in TypeScript
  9. 9Specify Exact Values with TypeScript’s Literal Types
  10. 10Model Alternatives with Discriminated Union Types in TypeScript
  11. 11Infer Types for Rest and Spread Properties in TypeScript
  12. 12Query Properties with keyof and Lookup Types in TypeScript
  13. 13Transform Existing Types Using Mapped Types in TypeScript

Similar TypeScript courses

  1. Practical Advanced TypeScript

    egghead · Rares Matei · 15 lessons · 4.6 from 56 ratings · Dec 2018

    1 h 3 minSubscription
    egghead154.6 (56)Dec 2018
  2. Intermediate1 h
    Codecademy1Apr 2024
  3. Intermediate1 h
    Codecademy1Apr 2024
  4. Intermediate1 h
    Codecademy1Apr 2024
  5. Build Custom Command Line Interface (CLI) Tooling with oclif and TypeScript

    egghead · Shawn Wang · 15 lessons · 4.4 from 11 ratings · Dec 2019

    1 h 31 minSubscription
    egghead154.4 (11)Dec 2019
  6. Build Algorithms using Typescript

    egghead · Basarat Ali Syed · 25 lessons · 5.0 from 4 ratings · Jul 2017

    1 h 40 minSubscription
    egghead255.0 (4)Jul 2017
  7. Get Up and Running with TypeScript

    Coursera · Harrison Kong · Mar 2021

    Beginner2 h
    CourseraMar 2021
  8. TypeScript Arrays

    Coursera · Chaitra Deshpande · May 2021

    Intermediate2 h
    CourseraMay 2021

A hyphen means the provider's catalogue does not state the value.

Same topic, nearest in length, up to three from any one provider.

Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.

    Compare