Skip to content

Commit

Permalink
Add comment documenting HttpClient#headers type. (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Jan 10, 2022
1 parent a916752 commit 44d65a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/net/net.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ declare module 'stripe' {
port: string | number,
path: string,
method: 'GET' | 'POST' | 'PUT' | 'DELETE',
// object is used here as this is implementation-specific. This is
// generally {[key: string]: string}, but various underlying clients
// support other types as well. As examples:
// - Node supports {[key: string]: string | number | string[]}.
// - Fetch supports a Headers object.
headers: object,
requestData: string | null,
protocol: Stripe.HttpProtocol,
Expand Down

0 comments on commit 44d65a1

Please sign in to comment.