Skip to content

Commit 309dd52

Browse files
更新 js 类型提示
1 parent 307f3b6 commit 309dd52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

global-types/globals.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ declare global {
1616
write(mType: number, data: string | Uint8Array): Promise<void>;
1717
}
1818

19-
function websocket(): Promise<WebSocketConnection>;
19+
function websocket(): WebSocketConnection;
2020

2121
// Event 相关类型
2222
interface EventSystem {
2323
load(key: string): Promise<any>;
2424
put(key: string, value: string): Promise<void>;
2525
}
2626

27-
// @ts-ignore
2827
const event: EventSystem;
2928

3029
// Request 相关类型
@@ -118,7 +117,6 @@ declare global {
118117
debug(...args: any[]): void;
119118
}
120119

121-
// @ts-ignore
122120
const console: Console;
123121
}
124122

0 commit comments

Comments
 (0)