Skip to content

Commit

Permalink
Merge pull request #1880 from maxsynnott/master
Browse files Browse the repository at this point in the history
Improved `maxNetworkRetries` options JSDoc
  • Loading branch information
richardm-stripe authored Aug 18, 2023
2 parents bdbaabd + 492d469 commit 139e4e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ declare module 'stripe' {
typescript?: true;

/**
* Enables automatic network retries with exponential backoff, up to the specified number of retries (default 0).
* Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication.
* Specifies maximum number of automatic network retries (default 1).
* Retries will be attempted with exponential backoff.
* Retries can be disabled by setting this option to 0.
* [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication.
* @docs https://github.com/stripe/stripe-node#network-retries
*/
maxNetworkRetries?: number;
Expand Down

0 comments on commit 139e4e4

Please sign in to comment.