更新 js 类型提示
This commit is contained in:
4
global-types/globals.d.ts
vendored
4
global-types/globals.d.ts
vendored
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user