Skip to content

Commit

Permalink
fix(types): compatibility with @types/ws (#4899)
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsalkgor authored Jun 9, 2023
1 parent 3d61107 commit 34bcec2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/serve-index": "^1.9.1",
"@types/serve-static": "^1.13.10",
"@types/sockjs": "^0.3.33",
"@types/ws": "^8.5.1",
"@types/ws": "^8.5.5",
"ansi-html-community": "^0.0.8",
"bonjour-service": "^1.0.11",
"chokidar": "^3.5.3",
Expand Down
6 changes: 5 additions & 1 deletion types/lib/servers/WebsocketServer.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/// <reference types="node" />
export = WebsocketServer;
declare class WebsocketServer extends BaseServer {
static heartbeatInterval: number;
implementation: WebSocket.Server<WebSocket.WebSocket>;
implementation: WebSocket.Server<
typeof WebSocket,
typeof import("http").IncomingMessage
>;
}
declare namespace WebsocketServer {
export { WebSocketServerConfiguration, ClientConnection };
Expand Down

0 comments on commit 34bcec2

Please sign in to comment.