Skip to content

Commit

Permalink
refactor(experimental): type reconciliation: GetTokenSupplyApi (#2893)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Jul 2, 2024
1 parent 0777b9a commit 8537343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rpc-api/src/getTokenSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Address } from '@solana/addresses';
import type { RpcApiMethods } from '@solana/rpc-spec';
import type { Commitment, SolanaRpcResponse, TokenAmount } from '@solana/rpc-types';

type GetTokenSupplyApiResponse = SolanaRpcResponse<TokenAmount>;
type GetTokenSupplyApiResponse = TokenAmount;

export interface GetTokenSupplyApi extends RpcApiMethods {
/**
Expand All @@ -14,5 +14,5 @@ export interface GetTokenSupplyApi extends RpcApiMethods {
config?: Readonly<{
commitment?: Commitment;
}>,
): GetTokenSupplyApiResponse;
): SolanaRpcResponse<GetTokenSupplyApiResponse>;
}

0 comments on commit 8537343

Please sign in to comment.