Update TypeScript, Prettier and typescript-eslint for new TypeScript 3.8 syntax
This commit is contained in:
parent
5758ed44ac
commit
26884432a2
65 changed files with 286 additions and 185 deletions
|
@ -5,7 +5,8 @@ import { w3cwebsocket } from 'websocket';
|
|||
|
||||
type ModifiedEventSource = Omit<EventSource, 'onerror'>;
|
||||
|
||||
declare class ModifiedWebSocket extends w3cwebsocket
|
||||
declare class ModifiedWebSocket
|
||||
extends w3cwebsocket
|
||||
implements ModifiedEventSource {
|
||||
withCredentials: boolean;
|
||||
|
||||
|
@ -17,4 +18,5 @@ declare class ModifiedWebSocket extends w3cwebsocket
|
|||
}
|
||||
|
||||
export type WebSocket = ModifiedWebSocket;
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const WebSocket = w3cwebsocket as typeof ModifiedWebSocket;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue