Type alias DefaultNever<T, V>

DefaultNever<T, V>: [T] extends [never]
    ? V
    : T

Creates a type which is V when T is never, otherwise T.

Type Parameters

  • T
  • V

Generated using TypeDoc