Use TypeScript’s never Type for Exhaustiveness Checking

Marius Schulz
InstructorMarius Schulz

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
~ 3 years ago

You rick rolled us...