Last updated 3 years ago
Was this helpful?
NotUndefined<Type>
A generic type NotUndefined represents any type instead of . It takes generic type variable constrained by which constraint causes its change to .
NotUndefined
type NotUndefined<Type> = Type extends undefined ? never : Type;
Type
A generic type Type that is never .
undefined
never