Files
Suggestion/node_modules/sift/lib/utils.d.ts
爱喝水的木子 00b48da363 fix
2026-03-02 15:35:39 +08:00

12 lines
678 B
TypeScript

export type Key = string | number;
export type Comparator = (a: any, b: any) => boolean;
export declare const typeChecker: <TType>(type: any) => (value: any) => value is TType;
export declare const comparable: (value: any) => any;
export declare const coercePotentiallyNull: (value: any) => any;
export declare const isArray: (value: any) => value is any[];
export declare const isObject: (value: any) => value is Object;
export declare const isFunction: (value: any) => value is Function;
export declare const isProperty: (item: any, key: any) => boolean;
export declare const isVanillaObject: (value: any) => boolean;
export declare const equals: (a: any, b: any) => boolean;