@types/async 3.2.18 → 3.2.20

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.
Files changed (3) hide show
  1. async/README.md +2 -2
  2. async/index.d.ts +5 -2
  3. async/package.json +3 -8
async/README.md CHANGED
@@ -8,9 +8,9 @@ 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: Wed, 15 Feb 2023 14:32:37 GMT
11
+ * Last updated: Wed, 26 Apr 2023 17:02:39 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `async`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Arseniy Maximov](https://github.com/kern0), [Joe Herman](https://github.com/Penryn), [Angus Fenying](https://github.com/fenying), [Pascal Martin](https://github.com/pascalmartin), [Etienne Rossignon](https://github.com/erossignon), [Lifeng Zhu](https://github.com/Juliiii), [Tümay Çeber](https://github.com/brendtumi), and [Andrew Pensinger](https://github.com/apnsngr).
16
+ These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Arseniy Maximov](https://github.com/kern0), [Angus Fenying](https://github.com/fenying), [Pascal Martin](https://github.com/pascalmartin), [Etienne Rossignon](https://github.com/erossignon), [Lifeng Zhu](https://github.com/Juliiii), [Tümay Çeber](https://github.com/brendtumi), and [Andrew Pensinger](https://github.com/apnsngr).
async/index.d.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  // Project: https://github.com/caolan/async, https://caolan.github.io/async
3
3
  // Definitions by: Boris Yankov <https://github.com/borisyankov>
4
4
  // Arseniy Maximov <https://github.com/kern0>
5
- // Joe Herman <https://github.com/Penryn>
6
5
  // Angus Fenying <https://github.com/fenying>
7
6
  // Pascal Martin <https://github.com/pascalmartin>
8
7
  // Etienne Rossignon <https://github.com/erossignon>
@@ -280,7 +279,11 @@ export function mapValuesLimit<T, R, E = Error>(
280
279
  ): Promise<R>;
281
280
 
282
281
  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>(obj: Dictionary<T>, iteratee: (value: T, key: string, callback: AsyncResultCallback<R, E>) => void): Promise<R>;
282
+ export function mapValues<T, R, E = Error, C = unknown>(
283
+ obj: Dictionary<T>,
284
+ // tslint:disable-next-line:void-return
285
+ iteratee: (value: T, key: string, callback: C extends undefined ? never : AsyncResultCallback<R, E>) => C extends undefined ? Promise<R> : void
286
+ ): Promise<Dictionary<R>>;
284
287
  export const mapValuesSeries: typeof mapValues;
285
288
  export function filter<T, E = Error>(arr: IterableCollection<T>, iterator: AsyncBooleanIterator<T, E>, callback: AsyncResultArrayCallback<T, E>): void;
286
289
  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.18",
3
+ "version": "3.2.20",
4
4
  "description": "TypeScript definitions for Async",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
6
6
  "license": "MIT",
@@ -15,11 +15,6 @@
15
15
  "url": "https://github.com/kern0",
16
16
  "githubUsername": "kern0"
17
17
  },
18
- {
19
- "name": "Joe Herman",
20
- "url": "https://github.com/Penryn",
21
- "githubUsername": "Penryn"
22
- },
23
18
  {
24
19
  "name": "Angus Fenying",
25
20
  "url": "https://github.com/fenying",
@@ -60,6 +55,6 @@
60
55
  },
61
56
  "scripts": {},
62
57
  "dependencies": {},
63
- "typesPublisherContentHash": "ab0621112da61fdc145d8719331eb5920a1c2dfda63ddce0b6c948b94d0f0645",
64
- "typeScriptVersion": "4.2"
58
+ "typesPublisherContentHash": "504b8bf37ab807f04edc13dbc9b4c67d1d49355d8b5ad1e11e7630c169b60cc1",
59
+ "typeScriptVersion": "4.3"
65
60
  }