lix-website/themes/lix/assets/bootstrap/node_modules/fast-equals/index.d.ts

27 lines
894 B
TypeScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
declare type EqualityComparator = (
objectA: any,
objectB: any,
meta?: any,
) => boolean;
declare type InternalEqualityComparator = (
objectA: any,
objectB: any,
indexOrKeyA: any,
indexOrKeyB: any,
parentA: any,
parentB: any,
meta: any,
) => boolean;
declare type EqualityComparatorCreator = (
comparator: EqualityComparator,
) => InternalEqualityComparator;
export declare function createCustomEqual(
createIsEqual?: EqualityComparatorCreator,
): EqualityComparator;
export declare function circularDeepEqual<A, B>(objectA: A, objectB: B): boolean;
export declare function circularShallowEqual<A, B>(objectA: A, objectB: B): boolean;
export declare function deepEqual<A, B>(objectA: A, objectB: B): boolean;
export declare function shallowEqual<A, B>(objectA: A, objectB: B): boolean;
export declare function sameValueZeroEqual<A, B>(objectA: A, objectB: B): boolean;