1×
Become a member
to unlock all features
Autoplay

    Use TypeScript’s never Type for Exhaustiveness Checking

    typescriptTypeScript
    ^2.0.0

    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.