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