From 309dd52dabbf93fc2b16bde81906cb87b9a14a4a Mon Sep 17 00:00:00 2001 From: dragon Date: Fri, 21 Nov 2025 15:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20js=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global-types/globals.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/global-types/globals.d.ts b/global-types/globals.d.ts index 93b36f7..e4337f8 100644 --- a/global-types/globals.d.ts +++ b/global-types/globals.d.ts @@ -16,7 +16,7 @@ declare global { write(mType: number, data: string | Uint8Array): Promise; } - function websocket(): Promise; + function websocket(): WebSocketConnection; // Event 相关类型 interface EventSystem { @@ -24,7 +24,6 @@ declare global { put(key: string, value: string): Promise; } - // @ts-ignore const event: EventSystem; // Request 相关类型 @@ -118,7 +117,6 @@ declare global { debug(...args: any[]): void; } - // @ts-ignore const console: Console; }