@ngxs/websocket-plugin 3.7.6 → 3.8.0-dev.master-743a236

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- type WebSocketMessage = string | Blob | ArrayBuffer | ArrayBufferView;
2
-
3
- declare module 'mock-socket' {
4
- interface WebSocketCallbackMap {
5
- close: () => void;
6
- error: (err: Error) => void;
7
- message: (message: WebSocketMessage) => void;
8
- open: () => void;
9
- }
10
-
11
- interface WebSocket {
12
- // the `WebSocket` from the `mock-socket` package actually has this method!
13
- // but they didn't add this method to the interface!
14
- // that's why we do "module augmentation"
15
- // so we don't have to use `any` type like `(socket: any)`
16
- on<K extends keyof WebSocketCallbackMap>(type: K, callback: WebSocketCallbackMap[K]): void;
17
- }
18
- }