@types/async-retry
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,17 +0,25 @@ | ||
// Type definitions for async-retry 1.1 | ||
// Type definitions for async-retry 1.2 | ||
// Project: https://github.com/zeit/async-retry#readme | ||
// Definitions by: Albert Wu <https://github.com/albertywu> | ||
// Pablo Rodríguez <https://github.com/MeLlamoPablo> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export function retry<A>(fn: RetryFunction<A>, opts: Options): Promise<A>; | ||
declare function AsyncRetry<A>( | ||
fn: AsyncRetry.RetryFunction<A>, | ||
opts: AsyncRetry.Options | ||
): Promise<A>; | ||
export interface Options { | ||
retries?: number; | ||
factor?: number; | ||
minTimeout?: number; | ||
maxTimeout?: number; | ||
randomize?: boolean; | ||
onRetry?: (e: Error) => any; | ||
declare namespace AsyncRetry { | ||
interface Options { | ||
retries?: number; | ||
factor?: number; | ||
minTimeout?: number; | ||
maxTimeout?: number; | ||
randomize?: boolean; | ||
onRetry?: (e: Error) => any; | ||
} | ||
type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>; | ||
} | ||
export type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>; | ||
export = AsyncRetry; |
{ | ||
"name": "@types/async-retry", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "TypeScript definitions for async-retry", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "albertywu" | ||
}, | ||
{ | ||
"name": "Pablo Rodríguez", | ||
"url": "https://github.com/MeLlamoPablo", | ||
"githubUsername": "MeLlamoPablo" | ||
} | ||
@@ -21,4 +26,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7e681d7ef6a77b49e8c73cc66ddc6aa266fd358ce65aec302c824799b37bd774", | ||
"typesPublisherContentHash": "17de25f40211474349e492e7f80198fda1778423d3e89d806e28a036bcf519ae", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 25 Jan 2018 17:59:35 GMT | ||
* Last updated: Mon, 02 Apr 2018 15:15:50 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Albert Wu <https://github.com/albertywu>. | ||
These definitions were written by Albert Wu <https://github.com/albertywu>, Pablo Rodríguez <https://github.com/MeLlamoPablo>. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3264
21