@types/async
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -129,5 +129,7 @@ // Type definitions for Async 3.0 | ||
export const eachOfLimit: typeof forEachOfLimit; | ||
export function map<T, R, E = Error>(arr: T[] | IterableIterator<T> | Dictionary<T>, iterator: AsyncResultIterator<T, R, E>, callback?: AsyncResultArrayCallback<R, E>): void; | ||
export function map<T, R, E = Error>(arr: T[] | IterableIterator<T> | Dictionary<T>, iterator: AsyncResultIterator<T, R, E>, callback: AsyncResultArrayCallback<R, E>): void; | ||
export function map<T, R, E = Error>(arr: T[] | IterableIterator<T> | Dictionary<T>, iterator: AsyncResultIterator<T, R, E>): Promise<R>; | ||
export const mapSeries: typeof map; | ||
export function mapLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R, E>, callback?: AsyncResultArrayCallback<R, E>): void; | ||
export function mapLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R, E>, callback: AsyncResultArrayCallback<R, E>): void; | ||
export function mapLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R, E>): Promise<R>; | ||
@@ -140,4 +142,10 @@ export function mapValuesLimit<T, R, E = Error>( | ||
): void; | ||
export function mapValuesLimit<T, R, E = Error>( | ||
obj: Dictionary<T>, | ||
limit: number, | ||
iteratee: (value: T, key: string, callback: AsyncResultCallback<R, E>) => void | ||
): Promise<R>; | ||
export function mapValues<T, R, E = Error>(obj: Dictionary<T>, iteratee: (value: T, key: string, callback: AsyncResultCallback<R, E>) => void, callback: AsyncResultObjectCallback<R, E>): void; | ||
export function mapValues<T, R, E = Error>(obj: Dictionary<T>, iteratee: (value: T, key: string, callback: AsyncResultCallback<R, E>) => void): Promise<R>; | ||
export const mapValuesSeries: typeof mapValues; | ||
@@ -144,0 +152,0 @@ export function filter<T, E = Error>(arr: IterableCollection<T>, iterator: AsyncBooleanIterator<T, E>, callback?: AsyncResultArrayCallback<T, E>): void; |
{ | ||
"name": "@types/async", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TypeScript definitions for Async", | ||
@@ -57,4 +57,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "06d965a22a4f98aaf3ac6dcb9c26dcc6dbc979dc9f65314202d400067985945c", | ||
"typesPublisherContentHash": "1efbfd67034ce238f162a75ab2c324b9722ade0334608f20b5231c81e3940257", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 22 Jul 2019 20:03:16 GMT | ||
* Last updated: Wed, 25 Sep 2019 23:15:25 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: async |
20196
235