Skip to content

Commit

Permalink
fix(subaccounts): type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck committed Jun 22, 2023
1 parent 527f940 commit a42002d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/subaccounts/lib/subaccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
CreditTransferParameters,
BalanceTransferListParameters,
BalanceTransfer,
BalanceTransferResponsePage,
BalanceTransferPageResponse,
BalanceTransferResponse,
BalanceTransferParameters,
NumberTransfer,
Expand Down Expand Up @@ -103,7 +103,7 @@ export class SubAccounts extends Client {
async listBalanceTransfers(
params: BalanceTransferListParameters,
): Promise<Array<BalanceTransfer>> {
const resp = await this.sendGetRequest<BalanceTransferResponsePage>(
const resp = await this.sendGetRequest<BalanceTransferPageResponse>(
`${this.config.apiHost}/accounts/${this.auth.apiKey}/balance-transfers`,
Client.transformers.snakeCaseObjectKeys(params),
);
Expand Down
6 changes: 3 additions & 3 deletions packages/subaccounts/lib/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './account';
export * from './balanceTransfer';
export * from './creditTransfer';
export * from './parameters';
export * from './requests';
export * from './responses';
export * from './parameters/index';
export * from './requests/index';
export * from './responses/index';
export * from './numberTransfer';
export * from './subAccount';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type BalancerTransferParameters = {
export type BalanceTransferParameters = {
from: string;
to: string;
amount: string;
Expand Down

0 comments on commit a42002d

Please sign in to comment.