Merge pull request #34665 from aikoven/async-retry-optional-options

[async-retry] Options are optional
This commit is contained in:
Armando Aguirre
2019-04-15 13:31:12 -07:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -20,3 +20,7 @@ const answer: Promise<number> = retry(
bail => Promise.resolve(42),
{ retries: 3 }
);
const noOptions: Promise<number> = retry(
bail => Promise.resolve(42),
);
+1 -1
View File
@@ -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 {