/** * @public */ declare class Types { /** * 原始类型 */ static readonly UNDEFINED: string; static readonly NULL: string; static readonly STRING: string; static readonly NUMBER: string; static readonly BOOLEAN: string; static readonly SYMBOL: string; static readonly BIG_INT: string; /** * 引用类型 */ static readonly FUNCTION: string; static readonly OBJECT: string; static readonly ARRAY: string; static readonly DATE: string; static readonly ERROR: string; /** * 基本数据类型集合 */ static readonly PRIMITIVE: string[]; /** * 是否是 undefined */ static isUndefined(value: unknown): value is undefined; /** * 是否是null */ static isNull(value: unknown): value is null; /** * 是否是字符串 */ static isString(value: unknown): value is string; /** * 是否是 boolean */ static isBoolean(value: unknown): value is boolean; /** * 是否是 symbol */ static isSymbol(value: unknown): value is symbol; /** * 是否是BIG_INT */ static isBigInt(value: unknown): value is bigint; /** * 是否是函数 */ static isFunction(value: unknown): value is Function; /** * 是否是object */ static isObject(value: unknown): value is Object; /** * 是否是数组 */ static isArray(value: unknown): value is Array; /** * 是否是 date */ static isDate(value: unknown): value is Date; /** * 是否是Error */ static isError(value: unknown): value is Error; /** * 是否是Promise */ static isPromise(value: unknown): value is Promise; /** * 是否是基本类型 */ static isPrimitive(value: unknown): boolean; /** * 是否是引用类型 */ static isNotPrimitive(value: unknown): boolean; } export default Types;