Skip to content

Commit 200315c

Browse files
1ilsangpull[bot]
authored andcommitted
typings: fix TypedArray to a global type
PR-URL: #54063 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b946b11 commit 200315c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

typings/globals.d.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ import { WASIBinding } from './internalBinding/wasi';
1919
import { WorkerBinding } from './internalBinding/worker';
2020
import { ModulesBinding } from './internalBinding/modules';
2121

22-
declare type TypedArray =
23-
| Uint8Array
24-
| Uint8ClampedArray
25-
| Uint16Array
26-
| Uint32Array
27-
| Int8Array
28-
| Int16Array
29-
| Int32Array
30-
| Float32Array
31-
| Float64Array
32-
| BigUint64Array
33-
| BigInt64Array;
34-
3522
interface InternalBindingMap {
3623
async_wrap: AsyncWrapBinding;
3724
blob: BlobBinding;
@@ -60,6 +47,19 @@ type InternalBindingKeys = keyof InternalBindingMap;
6047
declare function internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]
6148

6249
declare global {
50+
type TypedArray =
51+
| Uint8Array
52+
| Uint8ClampedArray
53+
| Uint16Array
54+
| Uint32Array
55+
| Int8Array
56+
| Int16Array
57+
| Int32Array
58+
| Float32Array
59+
| Float64Array
60+
| BigUint64Array
61+
| BigInt64Array;
62+
6363
namespace NodeJS {
6464
interface Global {
6565
internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]

0 commit comments

Comments
 (0)