From 99b1f1c4bbf66a40bfba65dd740bc45a8f2be133 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Tue, 10 Nov 2015 13:36:30 +0500 Subject: [PATCH] lodash: signatures of the method _.isEqual have been changed --- lodash/lodash-tests.ts | 50 ++++++++++++++++++++++++++++++------------ lodash/lodash.d.ts | 22 +++++++++++++++++++ 2 files changed, 58 insertions(+), 14 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 876547fd68..e52a8c60ce 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3658,15 +3658,26 @@ var testCloneDeepCustomizerFn: TestCloneDeepCustomizerFn; // _.eq module TestEq { let customizer: (value: any, other: any, indexOrKey?: number|string) => boolean; - let result: boolean; - result = _.eq(any, any); - result = _.eq(any, any, customizer); - result = _.eq(any, any, customizer, any); + { + let result: boolean; - result = _(any).eq(any); - result = _(any).eq(any, customizer); - result = _(any).eq(any, customizer, any) + result = _.eq(any, any); + result = _.eq(any, any, customizer); + result = _.eq(any, any, customizer, any); + + result = _(any).eq(any); + result = _(any).eq(any, customizer); + result = _(any).eq(any, customizer, any); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(any).chain().eq(any); + result = _(any).chain().eq(any, customizer); + result = _(any).chain().eq(any, customizer, any); + } } // _.gt @@ -3766,15 +3777,26 @@ result = _('').isEmpty(); // _.isEqual module TestIsEqual { let customizer: (value: any, other: any, indexOrKey?: number|string) => boolean; - let result: boolean; - result = _.isEqual(any, any); - result = _.isEqual(any, any, customizer); - result = _.isEqual(any, any, customizer, any); + { + let result: boolean; - result = _(any).isEqual(any); - result = _(any).isEqual(any, customizer); - result = _(any).isEqual(any, customizer, any) + result = _.isEqual(any, any); + result = _.isEqual(any, any, customizer); + result = _.isEqual(any, any, customizer, any); + + result = _(any).isEqual(any); + result = _(any).isEqual(any, customizer); + result = _(any).isEqual(any, customizer, any); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(any).chain().isEqual(any); + result = _(any).chain().isEqual(any, customizer); + result = _(any).chain().isEqual(any, customizer, any); + } } // _.isError diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 359cc0fb99..782c0712f0 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7796,6 +7796,17 @@ declare module _ { ): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEqual + */ + eq( + other: any, + customizer?: IsEqualCustomizer, + thisArg?: any + ): LoDashExplicitWrapper; + } + //_.gt interface LoDashStatic { /** @@ -7978,6 +7989,17 @@ declare module _ { ): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEqual + */ + isEqual( + other: any, + customizer?: IsEqualCustomizer, + thisArg?: any + ): LoDashExplicitWrapper; + } + //_.isError interface LoDashStatic { /**