diff --git a/lodash/lodash-3.10.d.ts b/lodash/lodash-3.10.d.ts index c801e62a9..b504a6478 100644 --- a/lodash/lodash-3.10.d.ts +++ b/lodash/lodash-3.10.d.ts @@ -14191,21 +14191,21 @@ declare module _ { * @param func The function to attempt. * @return Returns the func result or error object. */ - attempt(func: (...args: any[]) => TResult): TResult|Error; + attempt(func: (...args: any[]) => TResult, ...args: any[]): TResult|Error; } interface LoDashImplicitObjectWrapper { /** * @see _.attempt */ - attempt(): TResult|Error; + attempt(...args: any[]): TResult|Error; } interface LoDashExplicitObjectWrapper { /** * @see _.attempt */ - attempt(): LoDashExplicitObjectWrapper; + attempt(...args: any[]): LoDashExplicitObjectWrapper; } //_.callback diff --git a/lodash/lodash-tests-3.10.ts b/lodash/lodash-tests-3.10.ts index 7cad84c02..f00d23f90 100644 --- a/lodash/lodash-tests-3.10.ts +++ b/lodash/lodash-tests-3.10.ts @@ -9253,13 +9253,16 @@ module TestAttempt { let result: {a: string}|Error; result = _.attempt<{a: string}>(func); + result = _.attempt<{a: string}>(func, 'foo', 'bar', 'baz'); result = _(func).attempt<{a: string}>(); + result = _(func).attempt<{a: string}>('foo', 'bar', 'baz'); } { let result: _.LoDashExplicitObjectWrapper<{a: string}|Error>; result = _(func).chain().attempt<{a: string}>(); + result = _(func).chain().attempt<{a: string}>('foo', 'bar', 'baz'); } } diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index e3c795094..9752854ab 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -9410,13 +9410,16 @@ module TestAttempt { let result: {a: string}|Error; result = _.attempt<{a: string}>(func); + result = _.attempt<{a: string}>(func, 'foo', 'bar', 'baz'); result = _(func).attempt<{a: string}>(); + result = _(func).attempt<{a: string}>('foo', 'bar', 'baz'); } { let result: _.LoDashExplicitObjectWrapper<{a: string}|Error>; result = _(func).chain().attempt<{a: string}>(); + result = _(func).chain().attempt<{a: string}>('foo', 'bar', 'baz'); } } diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 7df507078..74ebf6ef7 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -15676,21 +15676,21 @@ declare module _ { * @param func The function to attempt. * @return Returns the func result or error object. */ - attempt(func: (...args: any[]) => TResult): TResult|Error; + attempt(func: (...args: any[]) => TResult, ...args: any[]): TResult|Error; } interface LoDashImplicitObjectWrapper { /** * @see _.attempt */ - attempt(): TResult|Error; + attempt(...args: any[]): TResult|Error; } interface LoDashExplicitObjectWrapper { /** * @see _.attempt */ - attempt(): LoDashExplicitObjectWrapper; + attempt(...args: any[]): LoDashExplicitObjectWrapper; } //_.constant