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,4 +1,4 @@
import { numberInString, OrderSide } from '../shared';
import { OrderSide, numberInString } from '../shared';
export type OrderTypeSpot = 'LIMIT' | 'MARKET' | 'LIMIT_MAKER';
export type OrderTimeInForce = 'GTC' | 'FOK' | 'IOC';

View File

@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
export interface PaginatedResult<TList = any> {
nextPageCursor: string;
list: TList[];

View File

@@ -1,3 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export interface UMPaginatedResult<List = any> {
nextPageCursor: string;
category: string;

View File

@@ -251,6 +251,7 @@ export interface RiskLimitV5 {
riskLimitValue: string;
maintenanceMargin: number;
initialMargin: number;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
section: any;
isLowestRisk: 0 | 1;
maxLeverage: string;

View File

@@ -1,7 +1,7 @@
import {
LeverageTokenStatusV5,
LTOrderStatusV5,
LTOrderTypeV5,
LeverageTokenStatusV5,
} from '../v5-shared';
export interface LeverageTokenInfoV5 {

View File

@@ -71,9 +71,9 @@ export type StopOrderTypeV5 =
/**
* Position index. Used to identify positions in different position modes.
*
* - 0one-way mode position
* - 1Buy side of hedge-mode position
* - 2Sell side of hedge-mode position
* - 0 one-way mode position
* - 1 Buy side of hedge-mode position
* - 2 Sell side of hedge-mode position
*/
export type PositionIdx = 0 | 1 | 2;
@@ -124,15 +124,11 @@ export type PermissionTypeV5 =
/**
* Leveraged token status:
*
* 1LT can be purchased and redeemed
*
* 2LT can be purchased, but not redeemed
*
* 3LT can be redeemed, but not purchased
*
* 4LT cannot be purchased nor redeemed
*
* 5Adjusting position
* - '1' LT can be purchased and redeemed
* - '2' LT can be purchased, but not redeemed
* - '3' LT can be redeemed, but not purchased
* - '4' LT cannot be purchased nor redeemed
* - '5' Adjusting position
*/
export type LeverageTokenStatusV5 = '1' | '2' | '3' | '4' | '5';

View File

@@ -98,6 +98,7 @@ export interface WSClientConfigurableOptions {
pingInterval?: number;
reconnectTimeout?: number;
restOptions?: RestClientOptions;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
requestOptions?: any;
wsUrl?: string;
/** If true, fetch server time before trying to authenticate (disabled by default) */