@types/async 3.2.18 → 3.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- async/README.md +1 -1
- async/index.d.ts +5 -1
- async/package.json +3 -3
async/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Async (https://github.com/caolan/asyn
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 21 Apr 2023 10:02:48 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `async`
|
|
14
14
|
|
async/index.d.ts
CHANGED
|
@@ -280,7 +280,11 @@ export function mapValuesLimit<T, R, E = Error>(
|
|
|
280
280
|
): Promise<R>;
|
|
281
281
|
|
|
282
282
|
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;
|
|
283
|
-
export function mapValues<T, R, E = Error
|
|
283
|
+
export function mapValues<T, R, E = Error, C = unknown>(
|
|
284
|
+
obj: Dictionary<T>,
|
|
285
|
+
// tslint:disable-next-line:void-return
|
|
286
|
+
iteratee: (value: T, key: string, callback: C extends undefined ? never : AsyncResultCallback<R, E>) => C extends undefined ? Promise<R> : void
|
|
287
|
+
): Promise<Dictionary<R>>;
|
|
284
288
|
export const mapValuesSeries: typeof mapValues;
|
|
285
289
|
export function filter<T, E = Error>(arr: IterableCollection<T>, iterator: AsyncBooleanIterator<T, E>, callback: AsyncResultArrayCallback<T, E>): void;
|
|
286
290
|
export function filter<T, E = Error>(arr: IterableCollection<T>, iterator: AsyncBooleanIterator<T, E>): Promise<T[]>;
|
async/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/async",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.19",
|
|
4
4
|
"description": "TypeScript definitions for Async",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
},
|
|
61
61
|
"scripts": {},
|
|
62
62
|
"dependencies": {},
|
|
63
|
-
"typesPublisherContentHash": "
|
|
64
|
-
"typeScriptVersion": "4.
|
|
63
|
+
"typesPublisherContentHash": "a7767c80777d9eb61901e768e308c054fa26cf1d39a98b3870397d6f75d24d66",
|
|
64
|
+
"typeScriptVersion": "4.3"
|
|
65
65
|
}
|