Typing.
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 9 Jan 2021 21:11:44 +0000 (22:11 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 9 Jan 2021 21:11:44 +0000 (22:11 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/types/WebSocket.ts

index 0799f7b4e0f8023f64c22d5c7daab3cb37c2e40f..8fedf7b4d37da4d7de00c330dcdb1df420cedbfe 100644 (file)
@@ -1,4 +1,4 @@
-export const WebSocketCloseEventStatusString: Record<number, string> = Object.freeze({
+export const WebSocketCloseEventStatusString: Record<WebSocketCloseEventStatusCode, string> = Object.freeze({
   1000: 'Normal Closure',
   1001: 'Going Away',
   1002: 'Protocol Error',