@onesy/utils
Version:
6 lines (5 loc) • 711 B
TypeScript
export declare type TIsType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'object-like' | 'class' | 'function' | 'async' | 'map' | 'weakmap' | 'set' | 'weakset' | 'promise' | 'int8array' | 'uint8array' | 'uint8clampedarray' | 'int16array' | 'uint16array' | 'int32array' | 'uint32array' | 'float32array' | 'float64array' | 'bigint64array' | 'biguint64array' | 'typedarray' | 'dataview' | 'arraybuffer' | 'sharedarraybuffer' | 'symbol' | 'error' | 'date' | 'regexp' | 'arguments' | 'null' | 'undefined' | 'blob' | 'buffer' | 'element' | 'simple' | 'not-array-object';
export interface IOptions {
variant?: string;
}
export default function is(type: TIsType, value?: any, options_?: IOptions): any;