@types/shallowequal
Version:
TypeScript definitions for shallowequal
38 lines (30 loc) • 1.16 kB
Markdown
# Installation
> `npm install --save @types/shallowequal`
# Summary
This package contains type definitions for shallowequal (https://github.com/dashed/shallowequal).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shallowequal.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shallowequal/index.d.ts)
````ts
declare function shallowEqual<TCtx = any>(
objA: any,
objB: any,
customizer?: shallowEqual.Customizer<TCtx>,
compareContext?: TCtx,
): boolean;
declare namespace shallowEqual {
type Customizer<T = any> = (
this: T,
objA: any,
objB: any,
indexOrKey?: number | string,
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
) => boolean | void;
}
export = shallowEqual;
````
### Additional Details
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
* Dependencies: none
# Credits
These definitions were written by [Sean Kelley](https://github.com/seansfkelley), [BendingBender](https://github.com/BendingBender), and [Arnd Issler](https://github.com/arndissler).