Skip to content

Commit

Permalink
Adding JSDocs for types file
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed May 14, 2024
1 parent 33fe676 commit ff342b8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/coinbase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ import { AxiosPromise } from "axios";
import { User as UserModel } from "./../client/api";

/**
* UserAPI client type definition
* UserAPI client type definition.
* Represents the client for User API interactions.
* @typedef {Object} UserAPIClient
* @property {function} getCurrentUser - Retrieves the current user.
* @property {Object} [options] - Axios request options.
* @returns {AxiosPromise<UserModel>} - A promise resolving to the User model.
*/
export type UserAPIClient = { getCurrentUser(options?): AxiosPromise<UserModel> };

/**
* API clients type definition for the Coinbase SDK
* API clients type definition for the Coinbase SDK.
* Represents the set of API clients available in the SDK.
* @typedef {Object} ApiClients
* @property {UserAPIClient} [user] - The User API client.
*/
export type ApiClients = {
user?: UserAPIClient;
Expand Down

0 comments on commit ff342b8

Please sign in to comment.