@types/async 3.2.15 → 3.2.16

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 +1 -1
  2. async/index.d.ts +3 -3
  3. 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: Wed, 06 Jul 2022 10:02:22 GMT
11
+ * Last updated: Mon, 28 Nov 2022 01:03:02 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `async`
14
14
 
async/index.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  export as namespace async;
16
16
 
17
17
  export interface Dictionary<T> { [key: string]: T; }
18
- export type IterableCollection<T> = T[] | IterableIterator<T> | Dictionary<T>;
18
+ export type IterableCollection<T> = T[] | IterableIterator<T> | AsyncIterable<T> | Dictionary<T>;
19
19
 
20
20
  export interface ErrorCallback<E = Error> { (err?: E | null): void; }
21
21
  export interface AsyncBooleanResultCallback<E = Error> { (err?: E | null, truthValue?: boolean): void; }
@@ -247,12 +247,12 @@ export const eachOf: typeof forEachOf;
247
247
  export const eachOfSeries: typeof forEachOf;
248
248
  export const eachOfLimit: typeof forEachOfLimit;
249
249
  export function map<T, R, E = Error>(
250
- arr: T[] | IterableIterator<T> | Dictionary<T>,
250
+ arr: IterableCollection<T>,
251
251
  iterator: (AsyncResultIterator<T, R, E> | AsyncResultIteratorPromise<T, R>),
252
252
  callback: AsyncResultArrayCallback<R, E>
253
253
  ): void;
254
254
  export function map<T, R, E = Error>(
255
- arr: T[] | IterableIterator<T> | Dictionary<T>,
255
+ arr: IterableCollection<T>,
256
256
  iterator: (AsyncResultIterator<T, R, E> | AsyncResultIteratorPromise<T, R>)
257
257
  ): Promise<R[]>;
258
258
 
async/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/async",
3
- "version": "3.2.15",
3
+ "version": "3.2.16",
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": "bbb8223de20daa7212242cc87e7884633b39451ecdc4548a2fa3491af982d801",
64
- "typeScriptVersion": "4.0"
63
+ "typesPublisherContentHash": "0c43e7edb7679f9dc405a71ec88c63003edb5518065190eaa27da3af1f3b94f2",
64
+ "typeScriptVersion": "4.1"
65
65
  }