Typegatewayv0.2.1-next.0
IsNever
Returns a boolean for whether the given type is never.
https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919 https://stackoverflow.com/a/53984913/10292952 https://www.zhenghao.io/posts/ts-never
Useful in type utilities, such as checking if something does not occur.
type IsNever<T> = [T] extends [never] ? true : false;T
T