mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 07:02:44 -05:00
Add missing index parameter to the Array.fromAsync's mapFn (#59837)
This commit is contained in:
committed by
GitHub
parent
a709f9899c
commit
fe2cb8ebaa
2
src/lib/esnext.array.d.ts
vendored
2
src/lib/esnext.array.d.ts
vendored
@@ -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