mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
[shallowequal] Compare callback allow undefined
https://github.com/dashed/shallowequal/blob/master/README.md explicit states that the callback may return undefined (void 0) if the user wishes to use the default compare.
This commit is contained in:
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Sean Kelley <https://github.com/seansfkelley>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function shallowEqual(objA: any, objB: any, compare?: (objA: any, objB: any, indexOrKey?: number | string) => boolean, compareContext?: any): boolean;
|
||||
declare function shallowEqual(objA: any, objB: any, compare?: (objA: any, objB: any, indexOrKey?: number | string) => boolean | undefined, compareContext?: any): boolean;
|
||||
|
||||
declare namespace shallowEqual { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user