diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index f038846d22..2a53dc0554 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -3954,6 +3954,10 @@ declare namespace _ { arrays3: List | null | undefined, arrays4: List | null | undefined, arrays5: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T, value4: T, value5: T) => TResult + ): TResult[]; + + zipWith( ...iteratee: Array<((...group: T[]) => TResult) | List | null | undefined> ): TResult[]; } diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index e40569204d..2ba0ac8183 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -3513,6 +3513,9 @@ namespace TestZipWith { return 1; }); + let mat = [[1, 2], [1, 2], [1, 2]]; + result = _.zipWith(...mat, (...group: number[]) => 1); + result = _([1, 2]).zipWith((value1) => { value1; // $ExpectType number return 1;