Type Alias DefaultNever<T, V>

DefaultNever: [T] extends [never] ? V : T

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

Type Parameters

  • T
  • V