mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
add array destructure overload for _.zipWith
This commit is contained in:
Vendored
+4
@@ -3954,6 +3954,10 @@ declare namespace _ {
|
||||
arrays3: List<T> | null | undefined,
|
||||
arrays4: List<T> | null | undefined,
|
||||
arrays5: List<T> | null | undefined,
|
||||
iteratee: (value1: T, value2: T, value3: T, value4: T, value5: T) => TResult
|
||||
): TResult[];
|
||||
|
||||
zipWith<T, TResult>(
|
||||
...iteratee: Array<((...group: T[]) => TResult) | List<T> | null | undefined>
|
||||
): TResult[];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user