GeezerVison is showing github.com — typings: fix TypedArray to a global type · nodejs/node@689d127
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: typings/globals.d.ts +13-13Lines changed: 13 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,19 +19,6 @@ import { WASIBinding } from './internalBinding/wasi'; |
19 | 19 | import { WorkerBinding } from './internalBinding/worker'; |
20 | 20 | import { ModulesBinding } from './internalBinding/modules'; |
21 | 21 |
|
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 | | - |
35 | 22 | interface InternalBindingMap { |
36 | 23 | async_wrap: AsyncWrapBinding; |
37 | 24 | blob: BlobBinding; |
@@ -60,6 +47,19 @@ type InternalBindingKeys = keyof InternalBindingMap; |
60 | 47 | declare function internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T] |
61 | 48 |
|
62 | 49 | 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 | + |
63 | 63 | namespace NodeJS { |
64 | 64 | interface Global { |
65 | 65 | internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T] |
|