Skip to content

Commit

Permalink
Retry can be a function
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Jun 16, 2017
1 parent 9497b2c commit 829b445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Options {
ignoreFailedInvalidation?: boolean;
maxRedirects?: number;
maxRetries?: number;
retry?: boolean;
retry?: boolean | ((err: NodeJS.ErrnoException | null, res: Response<NodeJS.ReadableStream> | void, attemptNumber: number) => boolean);
retryDelay?: number | ((err: NodeJS.ErrnoException | null, res: Response<NodeJS.ReadableStream> | void, attemptNumber: number) => number);
socketTimeout?: number;
timeout?: number;
Expand Down

0 comments on commit 829b445

Please sign in to comment.