type R = IsNotNever<1> // true
type R = IsNotNever<never> // false
🔢 customize
Filter to ensure T
is not never
, otherwise returns $Never
.
Filter normally returns never
in the $else
clause.
But since we are checking for never
here,
we have to return $Never
instead.
🎭 predicate
Validate if
T
notnever
.