Skip to content

Commit

Permalink
Use default type for "until" function in "RetryConfig" (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Aug 29, 2023
1 parent 07949c6 commit 4ec0f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ export interface RetryConfig<T> {
// maximal backoff in ms (default: 5 * 60 * 1000)
maxBackOff?: number;

// allows to abort retrying for certain errors (default: () => true)
// allows to abort retrying for certain errors, will retry until false (default: () => true)
retryIf: (error: any) => boolean
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/retry-promise.ts
Expand Up @@ -2,7 +2,7 @@

import {timeout} from "./timeout";

export interface RetryConfig<T> {
export interface RetryConfig<T = any> {
// number of maximal retry attempts (default: 10)
retries: number | "INFINITELY";

Expand Down

0 comments on commit 4ec0f2f

Please sign in to comment.