mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Add missing index parameter to the Array.fromAsync's mapFn (#59837)
This commit is contained in:
1 parent
a709f9899c
commit
fe2cb8ebaa
5 files changed
+103
-53
No files matched your search
Vendored
+1
-1
@@ -13,5 +13,5 @@ interface ArrayConstructor {
|
||||
* Each return value is awaited before being added to result array.
|
||||
* @param thisArg Value of 'this' used when executing mapfn.
|
||||
*/
|
||||
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
||||
}
|
||||
Reference in new issue
Block a user