Never
Never<Not, Type>
Never<Not, Type>type Never<Not, Type> = Type extends Not ? never : Type;Generic type variables
Not
NotType
TypeLast updated
Never<Not, Type>A generic type Never indicates the generic type variable Type is never of the generic type variable Not. It takes generic type variable Type constrained by a generic type variable Not which constraint causes its change to never.
type Never<Not, Type> = Type extends Not ? never : Type;NotA generic type variable Not constrain the generic type variable Type causing the Type change to never.
TypeA generic type variable Type constrained by generic type variable Not is never Not.
Last updated