diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 883cfb1bbc..66f0bf2cab 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -10196,26 +10196,14 @@ module TestTimes { let result: number[]; result = _.times(42); + result = _(42).times(); } { let result: TResult[]; result = _.times(42, iteratee); - result = _.times(42, iteratee, any); - } - - { - let result: _.LoDashImplicitArrayWrapper; - - result = _(42).times(); - } - - { - let result: _.LoDashImplicitArrayWrapper; - result = _(42).times(iteratee); - result = _(42).times(iteratee, any); } { @@ -10228,7 +10216,6 @@ module TestTimes { let result: _.LoDashExplicitArrayWrapper; result = _(42).chain().times(iteratee); - result = _(42).chain().times(iteratee, any); } } diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index bbd742cb69..aaa8dc7e3c 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -16657,18 +16657,16 @@ declare module _ { //_.times interface LoDashStatic { /** - * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee is - * bound to thisArg and invoked with one argument; (index). + * Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee + * is invoked with one argument; (index). * * @param n The number of times to invoke iteratee. * @param iteratee The function invoked per iteration. - * @param thisArg The this binding of iteratee. * @return Returns the array of results. */ times( n: number, - iteratee: (num: number) => TResult, - thisArg?: any + iteratee: (num: number) => TResult ): TResult[]; /** @@ -16682,14 +16680,13 @@ declare module _ { * @see _.times */ times( - iteratee: (num: number) => TResult, - thisArgs?: any - ): LoDashImplicitArrayWrapper; + iteratee: (num: number) => TResult + ): TResult[]; /** * @see _.times */ - times(): LoDashImplicitArrayWrapper; + times(): number[]; } interface LoDashExplicitWrapper { @@ -16697,8 +16694,7 @@ declare module _ { * @see _.times */ times( - iteratee: (num: number) => TResult, - thisArgs?: any + iteratee: (num: number) => TResult ): LoDashExplicitArrayWrapper; /**