Expand the definition of a WebSocketLikg (#2843).
This commit is contained in:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user