Skip to content

Commit

Permalink
Expand the definition of a WebSocketLikg (ethers-io#2843).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent de8da6b commit 575221b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/providers/src.ts/websocket-provider.ts
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 575221b

Please sign in to comment.