diff options
Diffstat (limited to 'cli/tsc/dts/lib.esnext.array.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.esnext.array.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.esnext.array.d.ts b/cli/tsc/dts/lib.esnext.array.d.ts index a74a7b311..5bf6612fc 100644 --- a/cli/tsc/dts/lib.esnext.array.d.ts +++ b/cli/tsc/dts/lib.esnext.array.d.ts @@ -291,3 +291,17 @@ interface BigUint64Array { with(index: number, value: number): BigUint64Array; } + +// NOTE(bartlomieju): taken from https://github.com/microsoft/TypeScript/issues/50803#issuecomment-1249030430 +// while we wait for these types to officially ship +interface ArrayConstructor { + fromAsync<T>( + iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>, + ): Promise<T[]>; + + fromAsync<T, U>( + iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, + mapFn: (value: Awaited<T>) => U, + thisArg?: any, + ): Promise<Awaited<U>[]>; +} |