UNPKG

447 BTypeScriptView Raw
1declare function shallowEqual<TCtx = any>(
2 objA: any,
3 objB: any,
4 customizer?: shallowEqual.Customizer<TCtx>,
5 compareContext?: TCtx,
6): boolean;
7
8declare namespace shallowEqual {
9 type Customizer<T = any> = (
10 this: T,
11 objA: any,
12 objB: any,
13 indexOrKey?: number | string,
14 // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
15 ) => boolean | void;
16}
17
18export = shallowEqual;