Defined
Defined<Type>
Defined<Type>A generic type Defined indicates the generic type variable Type is never undefined. It takes generic type variable Type constrained by undefined which constraint causes its change to never.
type Defined<Type> = Type extends undefined ? never : Type;Generic type variables
Type
TypeA generic type variable Type is never undefined but captured type.
Last updated
Was this helpful?