@@ -33,7 +33,7 @@ function * genPromises (n) {
33
33
>i : Symbol(i, Decl(arrayFromAsync.ts, 7, 12))
34
34
}
35
35
}
36
-
36
+
37
37
const arrLike = {
38
38
>arrLike : Symbol(arrLike, Decl(arrayFromAsync.ts, 12, 5))
39
39
@@ -185,3 +185,13 @@ const badArray = await Array.fromAsync(badIterable);
185
185
>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
186
186
>badIterable : Symbol(badIterable, Decl(arrayFromAsync.ts, 39, 5))
187
187
188
+ const withIndexResult = await Array.fromAsync(["a", "b"], (str, index) => ({ index, str }));
189
+ >withIndexResult : Symbol(withIndexResult, Decl(arrayFromAsync.ts, 43, 5))
190
+ >Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
191
+ >Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
192
+ >fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
193
+ >str : Symbol(str, Decl(arrayFromAsync.ts, 43, 59))
194
+ >index : Symbol(index, Decl(arrayFromAsync.ts, 43, 63))
195
+ >index : Symbol(index, Decl(arrayFromAsync.ts, 43, 76))
196
+ >str : Symbol(str, Decl(arrayFromAsync.ts, 43, 83))
197
+
0 commit comments