UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

17 lines (16 loc) 386 B
/** * Use assertNever at the end of exhaustive checks of discriminated unions. * TypeScript will error if it becomes non-exhaustive. * * For example, you can it at the end of a switch statement: * * switch (type) { * case "good": * ... * case "bad": * ... * default: * assertNever(type); * } */ export declare const assertNever: (value: never) => never;