fix linter configuration & jest type dependency
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
export interface PaginatedResult<TList = any> {
|
||||
nextPageCursor: string;
|
||||
list: TList[];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export interface UMPaginatedResult<List = any> {
|
||||
nextPageCursor: string;
|
||||
category: string;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
LeverageTokenStatusV5,
|
||||
LTOrderStatusV5,
|
||||
LTOrderTypeV5,
|
||||
LeverageTokenStatusV5,
|
||||
} from '../v5-shared';
|
||||
|
||||
export interface LeverageTokenInfoV5 {
|
||||
|
||||
@@ -71,9 +71,9 @@ export type StopOrderTypeV5 =
|
||||
/**
|
||||
* Position index. Used to identify positions in different position modes.
|
||||
*
|
||||
* - 0 one-way mode position
|
||||
* - 1 Buy side of hedge-mode position
|
||||
* - 2 Sell 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:
|
||||
*
|
||||
* 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
|
||||
* - '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';
|
||||
|
||||
|
||||
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user