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