fix linter configuration & jest type dependency

This commit is contained in:
tiagosiebler
2023-02-17 13:51:40 +00:00
parent 7669c037c8
commit 8e54ecbaf5
34 changed files with 1600 additions and 1710 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { REST_CLIENT_TYPE_ENUM } from './util/requestUtils';
import {
APIResponse,
@@ -273,6 +274,7 @@ export class LinearClient extends BaseRestClient {
*/
getPosition(): Promise<APIResponseWithTime<PerpPositionRoot[]>>;
getPosition(
params: Partial<SymbolParam>
): Promise<APIResponseWithTime<PerpPosition[]>>;
@@ -344,7 +346,10 @@ export class LinearClient extends BaseRestClient {
getHistoryTradeRecords(
params: LinearGetHistoryTradeRecordsRequest
): Promise<APIResponseWithTime<any>> {
return this.getPrivate('/private/linear/trade/execution/history-list', params);
return this.getPrivate(
'/private/linear/trade/execution/history-list',
params
);
}
getClosedPnl(