Skip to content

Commit

Permalink
chore(): rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Jul 24, 2024
1 parent 613f66e commit f0742aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ import {
DelegationHistoryParams,
DelistScheduleResponse,
WithdrawAddress,
AccountInfoResponse,
AccountInfo,
ManagedSubAccountSnapshotParams,
ManagedSubAccountSnapshotResponse,
ManagedSubAccountTransferLogParams,
Expand Down Expand Up @@ -697,7 +697,7 @@ export class MainClient extends BaseRestClient {
return this.getPrivate('sapi/v1/capital/withdraw/address/list');
}

getAccountInfo(): Promise<AccountInfoResponse> {
getAccountInfo(): Promise<AccountInfo> {
return this.getPrivate('sapi/v1/account/info');
}

Expand Down
14 changes: 7 additions & 7 deletions src/types/spot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ export type OrderResponseTypeFor<
> = RT extends 'ACK'
? OrderResponseACK
: RT extends 'RESULT'
? OrderResponseResult
: RT extends 'FULL'
? OrderResponseFull
: T extends 'MARKET' | 'LIMIT'
? OrderResponseFull
: OrderResponseACK;
? OrderResponseResult
: RT extends 'FULL'
? OrderResponseFull
: T extends 'MARKET' | 'LIMIT'
? OrderResponseFull
: OrderResponseACK;

export interface OrderResponseACK {
symbol: string;
Expand Down Expand Up @@ -2082,7 +2082,7 @@ export interface WithdrawAddress {
whiteStatus: boolean;
}

export interface AccountInfoResponse {
export interface AccountInfo {
vipLevel: number;
isMarginEnabled: boolean;
isFutureEnabled: boolean;
Expand Down

0 comments on commit f0742aa

Please sign in to comment.