UNPKG

1.16 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/shallowequal`
3
4# Summary
5This package contains type definitions for shallowequal (https://github.com/dashed/shallowequal).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shallowequal.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shallowequal/index.d.ts)
10````ts
11declare function shallowEqual<TCtx = any>(
12 objA: any,
13 objB: any,
14 customizer?: shallowEqual.Customizer<TCtx>,
15 compareContext?: TCtx,
16): boolean;
17
18declare namespace shallowEqual {
19 type Customizer<T = any> = (
20 this: T,
21 objA: any,
22 objB: any,
23 indexOrKey?: number | string,
24 // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
25 ) => boolean | void;
26}
27
28export = shallowEqual;
29
30````
31
32### Additional Details
33 * Last updated: Wed, 22 Nov 2023 00:24:48 GMT
34 * Dependencies: none
35
36# Credits
37These definitions were written by [Sean Kelley](https://github.com/seansfkelley), [BendingBender](https://github.com/BendingBender), and [Arnd Issler](https://github.com/arndissler).
38
\No newline at end of file