1 | // Type definitions for shallowequal 1.1
|
2 | // Project: https://github.com/dashed/shallowequal
|
3 | // Definitions by: Sean Kelley <https://github.com/seansfkelley>
|
4 | // BendingBender <https://github.com/BendingBender>
|
5 | // Arnd Issler <https://github.com/arndissler>
|
6 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
7 | // TypeScript Version: 2.3
|
8 |
|
9 | declare function shallowEqual<TCtx = any>(
|
10 | objA: any,
|
11 | objB: any,
|
12 | customizer?: shallowEqual.Customizer<TCtx>,
|
13 | compareContext?: TCtx
|
14 | ): boolean;
|
15 |
|
16 | declare namespace shallowEqual {
|
17 | type Customizer<T = any> = (
|
18 | this: T,
|
19 | objA: any,
|
20 | objB: any,
|
21 | indexOrKey?: number | string
|
22 | ) => boolean | void;
|
23 | }
|
24 |
|
25 | export = shallowEqual;
|