@types/async
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -225,10 +225,22 @@ // Type definitions for Async 3.0 | ||
export function retry<T, E = Error>( | ||
opts: number | { | ||
times: number, | ||
interval: number | ((retryCount: number) => number), | ||
errorFilter?: (error: Error) => boolean | ||
}, | ||
task: (callback: AsyncResultCallback<T, E>, results: any) => void, | ||
callback: AsyncResultCallback<any, E> | ||
): void; | ||
opts?: | ||
| number | ||
| { | ||
times?: number; | ||
interval?: number | ((retryCount: number) => number); | ||
errorFilter?: (error: Error) => boolean; | ||
}, | ||
task?: (callback: AsyncResultCallback<T, E>, results: any) => void, | ||
): Promise<void>; | ||
export function retry<T, E = Error>( | ||
opts?: | ||
| number | ||
| { | ||
times?: number; | ||
interval?: number | ((retryCount: number) => number); | ||
errorFilter?: (error: Error) => boolean; | ||
}, | ||
task?: (callback: AsyncResultCallback<T, E>, results: any) => void, | ||
callback?: AsyncResultCallback<any, E>, | ||
): void; | ||
@@ -235,0 +247,0 @@ export function retryable<T, E = Error>(opts: number | {times: number, interval: number}, task: AsyncFunction<T, E>): AsyncFunction<T, E>; |
{ | ||
"name": "@types/async", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "TypeScript definitions for Async", | ||
@@ -57,4 +57,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "8a503bc4c6f647228e53abfa3c00380158756b468aa22d95fefbe85cecc92849", | ||
"typesPublisherContentHash": "e386977967a3729e86c3819ac1de35586c290b9eb8fda4831e1458c47c33a6b8", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 27 Jan 2020 22:31:31 GMT | ||
* Last updated: Tue, 28 Jan 2020 00:33:06 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `async` |
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
21500
258