From 5e91c78bbff13d819f54beb588c42dbebf1524a9 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sun, 14 Feb 2021 17:13:38 +0000 Subject: [PATCH] address codefactor suggestion --- src/shared-endpoints.ts | 8 -------- src/websocket-client.ts | 10 +++------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/shared-endpoints.ts b/src/shared-endpoints.ts index c65a2ef..1f3a9b2 100644 --- a/src/shared-endpoints.ts +++ b/src/shared-endpoints.ts @@ -110,14 +110,6 @@ export default class SharedEndpoints { }): GenericAPIResponse { return this.requestWrapper.get('v2/private/wallet/withdraw/list', params); } - - getAssetExchangeRecords(params?: { - limit?: number; - from?: number; - direction?: string; - }): GenericAPIResponse { - return this.requestWrapper.get('v2/private/exchange-order/list', params); - } getAssetExchangeRecords(params?: { limit?: number; diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 27d9825..7e23e42 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -76,13 +76,9 @@ const getLinearWsKeyForTopic = (topic: string) => { } export declare interface WebsocketClient { - on(event: 'open', listener: ({ wsKey: string, event: any }) => void): this; - on(event: 'reconnected', listener: ({ wsKey: string, event: any }) => void): this; - on(event: 'reconnect', listener: () => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'response', listener: (response: any) => void): this; - on(event: 'update', listener: (response: any) => void): this; - on(event: 'error', listener: (response: any) => void): this; + on(event: 'open' | 'reconnected', listener: ({ wsKey: string, event: any }) => void): this; + on(event: 'response' | 'update' | 'error', listener: (response: any) => void): this; + on(event: 'reconnect' | 'close', listener: () => void): this; } export class WebsocketClient extends EventEmitter {