Type Alias: IsAny<T>
ts
type IsAny<T> = 0 extends 1 & T ? true : false;Returns a boolean for whether the given type is any.
https://stackoverflow.com/a/49928360/1490091
Useful in type utilities, such as disallowing anys to be passed to a function.
Type Parameters
| Type Parameter |
|---|
T |
Author
sindresorhus https://github.com/sindresorhus/type-fest