npm.io
1.1.5 • Published 2 years ago

@types/shallowequal

Licence
MIT
Version
1.1.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.3K

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 0048 GMT
  • Dependencies: none

Credits

These definitions were written by Sean Kelley, BendingBender, and Arnd Issler.