zkt25/Backend/node_modules/sift/lib/utils.d.ts
Andrii Pervashov d1b27aff06 initial commit
2025-03-16 16:17:44 +01: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;