@types/async
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -234,20 +234,13 @@ // Type definitions for Async 3.2 | ||
export interface RetryOptions { | ||
times?: number; | ||
interval?: number | ((retryCount: number) => number); | ||
errorFilter?: (error: Error) => boolean; | ||
} | ||
export function retry<T, E = Error>( | ||
opts?: | ||
| number | ||
| { | ||
times?: number; | ||
interval?: number | ((retryCount: number) => number); | ||
errorFilter?: (error: Error) => boolean; | ||
}, | ||
opts?: number | RetryOptions, | ||
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; | ||
}, | ||
opts?: number | RetryOptions, | ||
task?: (callback: AsyncResultCallback<T, E>, results: any) => void, | ||
@@ -257,3 +250,9 @@ callback?: AsyncResultCallback<any, E>, | ||
export function retryable<T, E = Error>(opts: number | {times: number, interval: number}, task: AsyncFunction<T, E>): AsyncFunction<T, E>; | ||
export function retryable<T, E = Error>(task: AsyncFunction<T, E>): AsyncFunction<T, E>; | ||
export function retryable<T, E = Error>( | ||
opts: | ||
| number | ||
| RetryOptions & {arity?: number}, | ||
task: AsyncFunction<T, E> | ||
): AsyncFunction<T, E>; | ||
export function apply<E = Error>(fn: Function, ...args: any[]): AsyncFunction<any, E>; | ||
@@ -260,0 +259,0 @@ export function nextTick(callback: Function, ...args: any[]): void; |
{ | ||
"name": "@types/async", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "TypeScript definitions for Async", | ||
@@ -62,4 +62,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "58ccc56b70520fa2b8b746c864a55a12aa2f4247c1f388d6f1b27400edba83cc", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "a2f3692bf0eb838ba6a9189b79f8008d9a5c51a004ba1267d948feacd9724d6e", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 27 Apr 2020 16:08:33 GMT | ||
* Last updated: Mon, 11 May 2020 17:28:15 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
22733
267