fix type for v5 sub/unsub method

This commit is contained in:
tiagosiebler
2023-02-24 16:10:25 +00:00
parent 0a1cc4ed2b
commit d6534a438c

View File

@@ -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) * @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( public subscribeV5(
wsTopics: WsTopic[] | WsTopic[], wsTopics: WsTopic[] | WsTopic,
category: CategoryV5, category: CategoryV5,
isPrivateTopic?: boolean 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) * @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( public unsubscribeV5(
wsTopics: WsTopic[] | WsTopic[], wsTopics: WsTopic[] | WsTopic,
category: CategoryV5, category: CategoryV5,
isPrivateTopic?: boolean isPrivateTopic?: boolean
) { ) {