更新 js 类型提示

This commit is contained in:
dragon
2025-11-21 15:25:45 +08:00
parent 307f3b6f9f
commit 309dd52dab

View File

@@ -16,7 +16,7 @@ declare global {
write(mType: number, data: string | Uint8Array): Promise<void>; write(mType: number, data: string | Uint8Array): Promise<void>;
} }
function websocket(): Promise<WebSocketConnection>; function websocket(): WebSocketConnection;
// Event 相关类型 // Event 相关类型
interface EventSystem { interface EventSystem {
@@ -24,7 +24,6 @@ declare global {
put(key: string, value: string): Promise<void>; put(key: string, value: string): Promise<void>;
} }
// @ts-ignore
const event: EventSystem; const event: EventSystem;
// Request 相关类型 // Request 相关类型
@@ -118,7 +117,6 @@ declare global {
debug(...args: any[]): void; debug(...args: any[]): void;
} }
// @ts-ignore
const console: Console; const console: Console;
} }