@types/async 3.2.13 → 3.2.14

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 +5 -4
  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: Tue, 26 Apr 2022 19:01:45 GMT
11
+ * Last updated: Tue, 28 Jun 2022 00:31:38 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `async`
14
14
 
async/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export interface AsyncBooleanResultCallback<E = Error> { (err?: E | null, truthV
22
22
  export interface AsyncResultCallback<T, E = Error> { (err?: E | null, result?: T): void; }
23
23
  export interface AsyncResultArrayCallback<T, E = Error> { (err?: E | null, results?: Array<T | undefined>): void; }
24
24
  export interface AsyncResultObjectCallback<T, E = Error> { (err: E | undefined, results: Dictionary<T | undefined>): void; }
25
+ export interface AsyncResultRestCallback<T, E = Error> { (err?: E | null, ...results: T[]): void; }
25
26
 
26
27
  export interface AsyncFunction<T, E = Error> { (callback: (err?: E | null, result?: T) => void): void; }
27
28
  export interface AsyncFunctionEx<T, E = Error> { (callback: (err?: E | null, ...results: T[]) => void): void; }
@@ -339,7 +340,7 @@ export function parallelLimit<T, R, E = Error>(tasks: Array<AsyncFunction<T, E>>
339
340
  export function whilst<T, E = Error>(
340
341
  test: (cb: AsyncBooleanResultCallback) => void,
341
342
  fn: AsyncFunctionEx<T, E>,
342
- callback: AsyncFunctionEx<T, E>
343
+ callback: AsyncResultRestCallback<T, E>
343
344
  ): void;
344
345
  export function whilst<T, R, E = Error>(
345
346
  test: (cb: AsyncBooleanResultCallback) => void,
@@ -348,7 +349,7 @@ export function whilst<T, R, E = Error>(
348
349
  export function doWhilst<T, E = Error>(
349
350
  fn: AsyncFunctionEx<T, E>,
350
351
  test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
351
- callback: AsyncFunctionEx<T, E>
352
+ callback: AsyncResultRestCallback<T, E>
352
353
  ): void;
353
354
  export function doWhilst<T, R, E = Error>(
354
355
  fn: AsyncFunctionEx<T, E>,
@@ -357,7 +358,7 @@ export function doWhilst<T, R, E = Error>(
357
358
  export function until<T, E = Error>(
358
359
  test: (cb: AsyncBooleanResultCallback) => void,
359
360
  fn: AsyncFunctionEx<T, E>,
360
- callback: AsyncFunctionEx<T, E>
361
+ callback: AsyncResultRestCallback<T, E>
361
362
  ): void;
362
363
  export function until<T, R, E = Error>(
363
364
  test: (cb: AsyncBooleanResultCallback) => void,
@@ -366,7 +367,7 @@ export function until<T, R, E = Error>(
366
367
  export function doUntil<T, E = Error>(
367
368
  fn: AsyncFunctionEx<T, E>,
368
369
  test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
369
- callback: AsyncFunctionEx<T, E>
370
+ callback: AsyncResultRestCallback<T, E>
370
371
  ): void;
371
372
  export function doUntil<T, R, E = Error>(
372
373
  fn: AsyncFunctionEx<T, E>,
async/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/async",
3
- "version": "3.2.13",
3
+ "version": "3.2.14",
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": "22f27984669b642fb97f4bfad08565120dfd1343e70b2d79ba4d08616f3347f7",
64
- "typeScriptVersion": "3.9"
63
+ "typesPublisherContentHash": "96d9c2e81a18d5af2a2879d63903b4884278d5c8517d02f4dbc32370afe6dfee",
64
+ "typeScriptVersion": "4.0"
65
65
  }