vtils

Home > types > IsAny

IsAny type

判断 T 是否是 any 类型。

Signature:

export declare type IsAny<T> = 0 extends 1 & T ? true : false;

Example

type X = IsAny<any>
// => true

https://stackoverflow.com/a/49928360