Skip to content

Commit e635e09

Browse files
1ilsangtargos
authored andcommitted
typings: fix TypedArray to a global type
PR-URL: #54063 Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a47bb9b commit e635e09

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

typings/globals.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,6 @@ import {URLBinding} from "./internalBinding/url";
1616
import {UtilBinding} from "./internalBinding/util";
1717
import {WorkerBinding} from "./internalBinding/worker";
1818

19-
declare type TypedArray =
20-
| Uint8Array
21-
| Uint8ClampedArray
22-
| Uint16Array
23-
| Uint32Array
24-
| Int8Array
25-
| Int16Array
26-
| Int32Array
27-
| Float32Array
28-
| Float64Array
29-
| BigUint64Array
30-
| BigInt64Array;
31-
3219
interface InternalBindingMap {
3320
async_wrap: AsyncWrapBinding;
3421
blob: BlobBinding;
@@ -54,6 +41,19 @@ type InternalBindingKeys = keyof InternalBindingMap;
5441
declare function internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]
5542

5643
declare global {
44+
type TypedArray =
45+
| Uint8Array
46+
| Uint8ClampedArray
47+
| Uint16Array
48+
| Uint32Array
49+
| Int8Array
50+
| Int16Array
51+
| Int32Array
52+
| Float32Array
53+
| Float64Array
54+
| BigUint64Array
55+
| BigInt64Array;
56+
5757
namespace NodeJS {
5858
interface Global {
5959
internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]

0 commit comments

Comments
 (0)