Skip to content

Commit b6f6827

Browse files
committed
typings: fix TypedArray to a global type
1 parent 173cfa4 commit b6f6827

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

typings/globals.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ type InternalBindingKeys = keyof InternalBindingMap;
5656
declare function internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]
5757

5858
declare global {
59+
type TypedArray =
60+
| Uint8Array
61+
| Uint8ClampedArray
62+
| Uint16Array
63+
| Uint32Array
64+
| Int8Array
65+
| Int16Array
66+
| Int32Array
67+
| Float32Array
68+
| Float64Array
69+
| BigUint64Array
70+
| BigInt64Array;
71+
5972
namespace NodeJS {
6073
interface Global {
6174
internalBinding<T extends InternalBindingKeys>(binding: T): InternalBindingMap[T]

0 commit comments

Comments
 (0)