Skip to content

Commit 00114d7

Browse files
committedAug 15, 2022
Expand the definition of a WebSocketLikg (#2843).

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/providers/src.ts/websocket-provider.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export type Subscription = {
4040
};
4141

4242
export interface WebSocketLike {
43-
onopen: (...args: Array<any>) => any;
44-
onmessage: (...args: Array<any>) => any;
45-
onerror: (...args: Array<any>) => any;
43+
onopen: ((...args: Array<any>) => any) | null;
44+
onmessage: ((...args: Array<any>) => any) | null;
45+
onerror: ((...args: Array<any>) => any) | null;
4646

4747
readyState: number;
4848

0 commit comments

Comments
 (0)
Please sign in to comment.