@types/shallowequal
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

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

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, BendingBender, and Arnd Issler.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/shallowequal

Weekly Downloads

137,050

Version

1.1.5

License

MIT

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • types