Skip to content

Commit 34bcec2

Browse files
authoredJun 9, 2023
fix(types): compatibility with @types/ws (#4899)
1 parent 3d61107 commit 34bcec2

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed
 

Diff for: ‎package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@types/serve-index": "^1.9.1",
5151
"@types/serve-static": "^1.13.10",
5252
"@types/sockjs": "^0.3.33",
53-
"@types/ws": "^8.5.1",
53+
"@types/ws": "^8.5.5",
5454
"ansi-html-community": "^0.0.8",
5555
"bonjour-service": "^1.0.11",
5656
"chokidar": "^3.5.3",

Diff for: ‎types/lib/servers/WebsocketServer.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
/// <reference types="node" />
12
export = WebsocketServer;
23
declare class WebsocketServer extends BaseServer {
34
static heartbeatInterval: number;
4-
implementation: WebSocket.Server<WebSocket.WebSocket>;
5+
implementation: WebSocket.Server<
6+
typeof WebSocket,
7+
typeof import("http").IncomingMessage
8+
>;
59
}
610
declare namespace WebsocketServer {
711
export { WebSocketServerConfiguration, ClientConnection };

0 commit comments

Comments
 (0)
Please sign in to comment.