diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 136a60f0a9..4c587b57b5 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -4054,15 +4054,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 @@ -4162,15 +4173,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 46cbbff083..98d8bf55d9 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -8048,6 +8048,17 @@ declare module _ { ): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEqual + */ + eq( + other: any, + customizer?: IsEqualCustomizer, + thisArg?: any + ): LoDashExplicitWrapper; + } + //_.gt interface LoDashStatic { /** @@ -8230,6 +8241,17 @@ declare module _ { ): boolean; } + interface LoDashExplicitWrapperBase { + /** + * @see _.isEqual + */ + isEqual( + other: any, + customizer?: IsEqualCustomizer, + thisArg?: any + ): LoDashExplicitWrapper; + } + //_.isError interface LoDashStatic { /**