Skip to content

Commit

Permalink
Expand the definition of a WebSocketLikg (#2843).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 15, 2022
1 parent 60da870 commit 00114d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/providers/src.ts/websocket-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 00114d7

Please sign in to comment.