Expand the definition of a WebSocketLikg (#2843).

This commit is contained in:
Richard Moore 2022-08-15 17:56:04 -04:00
parent 60da870cf2
commit 00114d7b2f

@ -40,9 +40,9 @@ export type Subscription = {
};
export interface WebSocketLike {
onopen: (...args: Array<any>) => any;
onmessage: (...args: Array<any>) => any;
onerror: (...args: Array<any>) => any;
onopen: ((...args: Array<any>) => any) | null;
onmessage: ((...args: Array<any>) => any) | null;
onerror: ((...args: Array<any>) => any) | null;
readyState: number;