Type alias NoNever<TYPE, ALTERNATIVE>

NoNever<TYPE, ALTERNATIVE>: TYPE extends never
    ? ALTERNATIVE
    : TYPE

A type to Remove the never type from a union.

Type Parameters

  • TYPE

  • ALTERNATIVE

Generated using TypeDoc