egghead.io
illustration for Advanced Static Types in TypeScript

Course

Advanced Static Types in TypeScript

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

Use TypeScript’s never Type for Exhaustiveness Checking

Marius Schulz
InstructorMarius Schulz
  • typescript
    TypeScript^2.0.0

Share this video with your friends

Send Tweet

TypeScript 2.0 introduced a new primitive type called never, the type of values that never occur. It helps model the completion behavior of functions more accurately and can also be used for exhaustiveness checking.

Brendan Whiting
Brendan Whiting
~ 7 years ago

You rick rolled us...

Build your Developer Portfolio and climb the engineering career ladder.
  • Search
  • Talks
  • Podcasts
  • Machine
  • Pricing
  • Store
©egghead.io
Terms & Conditions