From 0a94ca8c0258b4cf2680120ee977f4ffbb7e696c Mon Sep 17 00:00:00 2001 From: 1ilsang <1ilsang@naver.com> Date: Sat, 27 Jul 2024 13:44:03 +0900 Subject: [PATCH] typings: fix TypedArray to a global type --- typings/globals.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/typings/globals.d.ts b/typings/globals.d.ts index e2721c7c480371..0cd14551a47871 100644 --- a/typings/globals.d.ts +++ b/typings/globals.d.ts @@ -17,19 +17,6 @@ import {UtilBinding} from "./internalBinding/util"; import {WorkerBinding} from "./internalBinding/worker"; import {ModulesBinding} from "./internalBinding/modules"; -declare type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | Float32Array - | Float64Array - | BigUint64Array - | BigInt64Array; - interface InternalBindingMap { async_wrap: AsyncWrapBinding; blob: BlobBinding; @@ -56,6 +43,19 @@ type InternalBindingKeys = keyof InternalBindingMap; declare function internalBinding(binding: T): InternalBindingMap[T] declare global { + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | Float32Array + | Float64Array + | BigUint64Array + | BigInt64Array; + namespace NodeJS { interface Global { internalBinding(binding: T): InternalBindingMap[T]