From d6534a438cac258a3bc25fb8854daec54417d204 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Fri, 24 Feb 2023 16:10:25 +0000 Subject: [PATCH] fix type for v5 sub/unsub method --- src/websocket-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 348b671..9921af1 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -139,7 +139,7 @@ export class WebsocketClient extends EventEmitter { * @param isPrivateTopic - optional - the library will try to detect private topics, you can use this to mark a topic as private (if the topic isn't recognised yet) */ public subscribeV5( - wsTopics: WsTopic[] | WsTopic[], + wsTopics: WsTopic[] | WsTopic, category: CategoryV5, isPrivateTopic?: boolean ) { @@ -240,7 +240,7 @@ export class WebsocketClient extends EventEmitter { * @param isPrivateTopic - optional - the library will try to detect private topics, you can use this to mark a topic as private (if the topic isn't recognised yet) */ public unsubscribeV5( - wsTopics: WsTopic[] | WsTopic[], + wsTopics: WsTopic[] | WsTopic, category: CategoryV5, isPrivateTopic?: boolean ) {