Skip to content

Commit

Permalink
Updating typings
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed May 16, 2024
1 parent 264849b commit 9aa8a2b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/coinbase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
User as UserModel,
Wallet as WalletModel,
} from "./../client/api";
import { APIError } from "./api_error";

Check failure on line 8 in src/coinbase/types.ts

View workflow job for this annotation

GitHub Actions / lint

'APIError' is defined but never used

/**
* WalletAPI client type definition.
Expand All @@ -16,7 +17,7 @@ export type WalletAPIClient = {
* @class
* @param {CreateWalletRequest} [createWalletRequest] - The wallet creation request.
* @param {RawAxiosRequestConfig} [options] - Axios request options.
* @throws {RequiredError}
* @throws {APIError} If the request fails.
*/
createWallet: (
createWalletRequest?: CreateWalletRequest,
Expand All @@ -34,7 +35,7 @@ export type AddressAPIClient = {
* @param {string} walletId - The wallet ID.
* @param {string} addressId - The address ID.
* @returns {Promise<{ data: { transaction_hash: string } }>} - The transaction hash
* @throws {Error} If the request fails.
* @throws {APIError} If the request fails.
*/
requestFaucetFunds(
walletId: string,
Expand All @@ -48,7 +49,7 @@ export type AddressAPIClient = {
* @param {string} walletId - The ID of the wallet the address belongs to.
* @param {string} addressId - The onchain address of the address that is being fetched.
* @param {AxiosRequestConfig} [options] - Axios request options.
* @throws {RequiredError}
* @throws {APIError} If the request fails.
*/
getAddress(
walletId: string,
Expand All @@ -65,8 +66,8 @@ export type UserAPIClient = {
* Retrieves the current user.
*
* @param {AxiosRequestConfig} [options] - Axios request options.
* @returns {AxiosPromise<UserModel>} - A promise resolving to the User model.
* @throws {AxiosError} If the request fails.
* @returns {AxiosPromise<UserModel>} - A promise resolvindg to the User model.
* @throws {APIError} If the request fails.
*/
getCurrentUser(options?: AxiosRequestConfig): AxiosPromise<UserModel>;
};
Expand Down

0 comments on commit 9aa8a2b

Please sign in to comment.