diff options
author | 2023-02-03 16:29:03 -0800 | |
---|---|---|
committer | 2023-02-03 16:29:03 -0800 | |
commit | 164cd774f7e8075b1f3a2948c141d27b01f3d542 (patch) | |
tree | ac8e99d23ee1c7ecb6228148f3ed41197d3e6c87 | |
parent | 6469649f6436c4d5529844226b13c0ddbc8179d0 (diff) | |
download | bun-164cd774f7e8075b1f3a2948c141d27b01f3d542.tar.gz bun-164cd774f7e8075b1f3a2948c141d27b01f3d542.tar.zst bun-164cd774f7e8075b1f3a2948c141d27b01f3d542.zip |
Fix types for `Array.fromAsync`
-rw-r--r-- | packages/bun-types/globals.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index 36fad664f..cef3f57ec 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -59,7 +59,7 @@ interface ArrayConstructor { asyncItems: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapfn?: (value: any, index: number) => any, thisArg?: any, - ): Array<T>; + ): Promise<Array<T>>; } interface Console { |