mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #34665 from aikoven/async-retry-optional-options
[async-retry] Options are optional
This commit is contained in:
@@ -20,3 +20,7 @@ const answer: Promise<number> = retry(
|
||||
bail => Promise.resolve(42),
|
||||
{ retries: 3 }
|
||||
);
|
||||
|
||||
const noOptions: Promise<number> = retry(
|
||||
bail => Promise.resolve(42),
|
||||
);
|
||||
|
||||
Vendored
+1
-1
@@ -10,7 +10,7 @@ import { OperationOptions } from 'retry';
|
||||
|
||||
declare function AsyncRetry<A>(
|
||||
fn: AsyncRetry.RetryFunction<A>,
|
||||
opts: AsyncRetry.Options
|
||||
opts?: AsyncRetry.Options
|
||||
): Promise<A>;
|
||||
|
||||
declare namespace AsyncRetry {
|
||||
|
||||
Reference in New Issue
Block a user