@types/async
Advanced tools
Comparing version 2.0.43 to 2.0.44
@@ -5,2 +5,3 @@ // Type definitions for Async 2.0.1 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
@@ -27,2 +28,7 @@ export as namespace async; | ||
export type AsyncAutoTasks<R extends Dictionary<any>, E> = { [K in keyof R]: AsyncAutoTask<R[K], R, E> } | ||
export type AsyncAutoTask<R1, R extends Dictionary<any>, E> = AsyncAutoTaskFunctionWithoutDependencies<R1, E> | (keyof R | AsyncAutoTaskFunction<R1, R, E>)[]; | ||
export interface AsyncAutoTaskFunctionWithoutDependencies<R1, E> { (cb: AsyncResultCallback<R1, E> | ErrorCallback<E>): void; } | ||
export interface AsyncAutoTaskFunction<R1, R extends Dictionary<any>, E> { (results: R, cb: AsyncResultCallback<R1, E> | ErrorCallback<E>): void; } | ||
export interface AsyncQueue<T> { | ||
@@ -188,3 +194,3 @@ length(): number; | ||
export function cargo<E>(worker : (tasks: any[], callback : ErrorCallback<E>) => void, payload? : number) : AsyncCargo; | ||
export function auto<E>(tasks: any, concurrency?: number, callback?: AsyncResultCallback<any, E>): void; | ||
export function auto<R extends Dictionary<any>, E>(tasks: AsyncAutoTasks<R, E>, concurrency?: number, callback?: AsyncResultCallback<R, E>): void; | ||
export function autoInject<E>(tasks: any, callback?: AsyncResultCallback<any, E>): void; | ||
@@ -191,0 +197,0 @@ export function retry<T, E>(opts: number, task: (callback : AsyncResultCallback<T, E>, results: any) => void, callback: AsyncResultCallback<any, E | Error>): void; |
{ | ||
"name": "@types/async", | ||
"version": "2.0.43", | ||
"version": "2.0.44", | ||
"description": "TypeScript definitions for Async", | ||
@@ -40,4 +40,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "8a84729011263c6c0886f51e030837680a871f962fe4a24f057026b9225b4354", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "7d7b6313bdd6453b8d77c55f846afc9cd58ede2e7346fd934bdde5a98e5d1de1", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 26 Sep 2017 18:17:11 GMT | ||
* Last updated: Fri, 06 Oct 2017 18:28:27 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: async |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19775
208
0