diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 8a47a41f12..8c04cd8f8c 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -2992,8 +2992,20 @@ module TestToPlainObject { ********/ // _.add -result = _.add(1, 1); -result = _(1).add(1); +module TestAdd { + { + let result: number; + + result = _.add(1, 1); + result = _(1).add(1); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().add(1); + } +} // _.ceil module TestCeil { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 528356ff24..5c1bf088fc 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7447,11 +7447,15 @@ declare module _ { interface LoDashStatic { /** * Adds two numbers. + * * @param augend The first number to add. * @param addend The second number to add. * @return Returns the sum. */ - add(augend: number, addend: number): number; + add( + augend: number, + addend: number + ): number; } interface LoDashImplicitWrapper { @@ -7461,6 +7465,13 @@ declare module _ { add(addend: number): number; } + interface LoDashExplicitWrapper { + /** + * @see _.add + */ + add(addend: number): LoDashExplicitWrapper; + } + //_.ceil interface LoDashStatic { /**