Last updated 3 years ago
Was this helpful?
Undefined<Type>
A generic type Undefined indicates generic type variable as . It takes generic type variable causing other types than its change to .
Undefined
type Undefined<Type> = Type extends undefined ? Type : never;
Type
Generic type variable that cannot be different than .
undefined
never