Skip to content

Commit

Permalink
Add types for extra request options
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jun 9, 2022
1 parent 5416318 commit 34d52a5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions types/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,19 @@ declare module 'stripe' {
*/
timeout?: number;

/**
* Specify the host to use for API Requests.
*/
host?: string;

/**
* Specify the port to use for API Requests.
*/
port?: string | number;

/**
* Specify the HTTP protool to use for API Requests.
*/
protocol?: HttpProtocol;

/**
Expand Down Expand Up @@ -170,6 +179,21 @@ declare module 'stripe' {
* Specify a timeout for this request in milliseconds.
*/
timeout?: number;

/**
* Specify the host for this request.
*/
host?: string;

/**
* Specify the port for this request.
*/
port?: string | number;

/**
* Specify the HTTP protool for this request.
*/
protocol?: HttpProtocol;
}

export type Response<T> = T & {
Expand Down

0 comments on commit 34d52a5

Please sign in to comment.