Merge pull request #26493 from allada/master

[shallowequal] Make compare parameter return optional
This commit is contained in:
Mine Starks
2018-06-13 08:39:44 -07:00
committed by GitHub
+1 -1
View File
@@ -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 { }