From 00114d7b2f6e65a1cc974ea5b03abad568db4827 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 15 Aug 2022 17:56:04 -0400 Subject: [PATCH] Expand the definition of a WebSocketLikg (#2843). --- packages/providers/src.ts/websocket-provider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/providers/src.ts/websocket-provider.ts b/packages/providers/src.ts/websocket-provider.ts index e8b9cd868..b720549b1 100644 --- a/packages/providers/src.ts/websocket-provider.ts +++ b/packages/providers/src.ts/websocket-provider.ts @@ -40,9 +40,9 @@ export type Subscription = { }; export interface WebSocketLike { - onopen: (...args: Array) => any; - onmessage: (...args: Array) => any; - onerror: (...args: Array) => any; + onopen: ((...args: Array) => any) | null; + onmessage: ((...args: Array) => any) | null; + onerror: ((...args: Array) => any) | null; readyState: number;