Use TypeScript’s never Type for Exhaustiveness Checking

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

You rick rolled us...