Skip to content

Commit

Permalink
Use TSDoc notation
Browse files Browse the repository at this point in the history
For improved IDE integration on hover
  • Loading branch information
orenyomtov committed Jan 19, 2023
1 parent 82bdd16 commit cbb0927
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,16 @@ const fireblocks = new FireblocksSDK(privateKey, apiKey, baseUrl, authProvider,
The `options` argument has the following structure:
```typescript
interface SDKOptions {
timeoutInMs?: number; // HTTP request timeout
proxy?: AxiosProxyConfig | false; // Proxy configuration
anonymousPlatform?: boolean; // Whether to remove platform from User-Agent header
userAgent?: string; // Additional product identifier to be prepended to the User-Agent header
/** HTTP request timeout */
timeoutInMs?: number;

/** Proxy configurations */
proxy?: AxiosProxyConfig | false;

/** Whether to remove platform from User-Agent header */
anonymousPlatform?: boolean;

/** Additional product identifier to be prepended to the User-Agent header */
userAgent?: string;
}
```
15 changes: 11 additions & 4 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,17 @@ import { AxiosProxyConfig } from "axios";
export * from "./types";

export interface SDKOptions {
timeoutInMs?: number; // HTTP request timeout
proxy?: AxiosProxyConfig | false; // Proxy configuration
anonymousPlatform?: boolean; // Whether to remove platform from User-Agent header
userAgent?: string; // Additional product identifier to be prepended to the User-Agent header
/** HTTP request timeout */
timeoutInMs?: number;

/** Proxy configurations */
proxy?: AxiosProxyConfig | false;

/** Whether to remove platform from User-Agent header */
anonymousPlatform?: boolean;

/** Additional product identifier to be prepended to the User-Agent header */
userAgent?: string;
}

export class FireblocksSDK {
Expand Down

0 comments on commit cbb0927

Please sign in to comment.