@types/async 3.2.7 → 3.2.11

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 +44 -12
  3. async/package.json +8 -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: Tue, 06 Jul 2021 18:05:36 GMT
11
+ * Last updated: Thu, 23 Dec 2021 23:34:16 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), [Dmitri Trofimov](https://github.com/Dmitri1337), [Etienne Rossignon](https://github.com/erossignon), [Lifeng Zhu](https://github.com/Juliiii), and [Tümay Çeber](https://github.com/brendtumi).
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).
async/index.d.ts CHANGED
@@ -5,10 +5,10 @@
5
5
  // Joe Herman <https://github.com/Penryn>
6
6
  // Angus Fenying <https://github.com/fenying>
7
7
  // Pascal Martin <https://github.com/pascalmartin>
8
- // Dmitri Trofimov <https://github.com/Dmitri1337>
9
8
  // Etienne Rossignon <https://github.com/erossignon>
10
9
  // Lifeng Zhu <https://github.com/Juliiii>
11
10
  // Tümay Çeber <https://github.com/brendtumi>
11
+ // Andrew Pensinger <https://github.com/apnsngr>
12
12
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
13
13
  // TypeScript Version: 2.3
14
14
 
@@ -302,7 +302,8 @@ export const allSeries: typeof every;
302
302
  export const allLimit: typeof everyLimit;
303
303
 
304
304
  export function concat<T, R, E = Error>(arr: IterableCollection<T>, iterator: AsyncResultIterator<T, R[], E>, callback?: AsyncResultArrayCallback<R, E>): void;
305
- export function concatLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R[], E>, callback?: AsyncResultArrayCallback<R, E>): void;
305
+ export function concatLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R[], E>, callback: AsyncResultArrayCallback<R, E>): void;
306
+ export function concatLimit<T, R, E = Error>(arr: IterableCollection<T>, limit: number, iterator: AsyncResultIterator<T, R[], E>): Promise<R[]>;
306
307
  export const concatSeries: typeof concat;
307
308
 
308
309
  // Control Flow
@@ -315,14 +316,44 @@ export function parallel<T, R, E = Error>(tasks: Array<AsyncFunction<T, E>> | Di
315
316
  export function parallelLimit<T, E = Error>(tasks: Array<AsyncFunction<T, E>>, limit: number, callback?: AsyncResultArrayCallback<T, E>): void;
316
317
  export function parallelLimit<T, E = Error>(tasks: Dictionary<AsyncFunction<T, E>>, limit: number, callback?: AsyncResultObjectCallback<T, E>): void;
317
318
  export function parallelLimit<T, R, E = Error>(tasks: Array<AsyncFunction<T, E>> | Dictionary<AsyncFunction<T, E>>, limit: number): Promise<R>;
318
- export function whilst<E = Error>(test: (cb: (err: any, truth: boolean) => boolean) => boolean, fn: AsyncVoidFunction<E>, callback: ErrorCallback<E>): void;
319
- export function whilst<R, E = Error>(test: (cb: (err: any, truth: boolean) => boolean) => boolean, fn: AsyncVoidFunction<E>): Promise<R>;
320
- export function doWhilst<T, E = Error>(fn: AsyncFunctionEx<T, E>, test: (...results: T[]) => boolean, callback: ErrorCallback<E>): void;
321
- export function doWhilst<T, R, E = Error>(fn: AsyncFunctionEx<T, E>, test: (...results: T[]) => boolean): Promise<R>;
322
- export function until<E = Error>(test: () => boolean, fn: AsyncVoidFunction<E>, callback: ErrorCallback<E>): void;
323
- export function until<R, E = Error>(test: () => boolean, fn: AsyncVoidFunction<E>): Promise<R>;
324
- export function doUntil<T, E = Error>(fn: AsyncFunctionEx<T, E>, test: (...results: T[]) => boolean, callback: ErrorCallback<E>): void;
325
- export function doUntil<T, R, E = Error>(fn: AsyncFunctionEx<T, E>, test: (...results: T[]) => boolean): Promise<R>;
319
+
320
+ export function whilst<T, E = Error>(
321
+ test: (cb: AsyncBooleanResultCallback) => void,
322
+ fn: AsyncFunctionEx<T, E>,
323
+ callback: AsyncFunctionEx<T, E>
324
+ ): void;
325
+ export function whilst<T, R, E = Error>(
326
+ test: (cb: AsyncBooleanResultCallback) => void,
327
+ fn: AsyncFunctionEx<T, E>
328
+ ): Promise<R>;
329
+ export function doWhilst<T, E = Error>(
330
+ fn: AsyncFunctionEx<T, E>,
331
+ test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
332
+ callback: AsyncFunctionEx<T, E>
333
+ ): void;
334
+ export function doWhilst<T, R, E = Error>(
335
+ fn: AsyncFunctionEx<T, E>,
336
+ test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void
337
+ ): Promise<R>;
338
+ export function until<T, E = Error>(
339
+ test: (cb: AsyncBooleanResultCallback) => void,
340
+ fn: AsyncFunctionEx<T, E>,
341
+ callback: AsyncFunctionEx<T, E>
342
+ ): void;
343
+ export function until<T, R, E = Error>(
344
+ test: (cb: AsyncBooleanResultCallback) => void,
345
+ fn: AsyncFunctionEx<T, E>
346
+ ): Promise<R>;
347
+ export function doUntil<T, E = Error>(
348
+ fn: AsyncFunctionEx<T, E>,
349
+ test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
350
+ callback: AsyncFunctionEx<T, E>
351
+ ): void;
352
+ export function doUntil<T, R, E = Error>(
353
+ fn: AsyncFunctionEx<T, E>,
354
+ test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void
355
+ ): Promise<R>;
356
+
326
357
  export function during<E = Error>(test: (testCallback: AsyncBooleanResultCallback<E>) => void, fn: AsyncVoidFunction<E>, callback: ErrorCallback<E>): void;
327
358
  export function doDuring<E = Error>(fn: AsyncVoidFunction<E>, test: (testCallback: AsyncBooleanResultCallback<E>) => void, callback: ErrorCallback<E>): void;
328
359
  export function forever<E = Error>(next: (next: ErrorCallback<E>) => void, errBack: ErrorCallback<E>): void;
@@ -340,8 +371,9 @@ export function cargoQueue<T, E = Error>(
340
371
  concurrency?: number,
341
372
  payload?: number,
342
373
  ): QueueObject<T>;
343
- export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, concurrency?: number, callback?: AsyncResultCallback<R, E>): void;
344
- export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, callback?: AsyncResultCallback<R, E>): void;
374
+ export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, concurrency?: number): Promise<R>;
375
+ export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, concurrency: number, callback: AsyncResultCallback<R, E>): void;
376
+ export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, callback: AsyncResultCallback<R, E>): void;
345
377
  export function autoInject<E = Error>(tasks: any, callback?: AsyncResultCallback<any, E>): void;
346
378
 
347
379
  export interface RetryOptions<E> {
async/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/async",
3
- "version": "3.2.7",
3
+ "version": "3.2.11",
4
4
  "description": "TypeScript definitions for Async",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
6
6
  "license": "MIT",
@@ -30,11 +30,6 @@
30
30
  "url": "https://github.com/pascalmartin",
31
31
  "githubUsername": "pascalmartin"
32
32
  },
33
- {
34
- "name": "Dmitri Trofimov",
35
- "url": "https://github.com/Dmitri1337",
36
- "githubUsername": "Dmitri1337"
37
- },
38
33
  {
39
34
  "name": "Etienne Rossignon",
40
35
  "url": "https://github.com/erossignon",
@@ -49,6 +44,11 @@
49
44
  "name": "Tümay Çeber",
50
45
  "url": "https://github.com/brendtumi",
51
46
  "githubUsername": "brendtumi"
47
+ },
48
+ {
49
+ "name": "Andrew Pensinger",
50
+ "url": "https://github.com/apnsngr",
51
+ "githubUsername": "apnsngr"
52
52
  }
53
53
  ],
54
54
  "main": "",
@@ -60,6 +60,6 @@
60
60
  },
61
61
  "scripts": {},
62
62
  "dependencies": {},
63
- "typesPublisherContentHash": "a7f55effef6626a2acf65e1b02c8f8269289bd42332c90fcb08bae53adbc64c8",
64
- "typeScriptVersion": "3.6"
63
+ "typesPublisherContentHash": "a84804e41d003d56b766481633495eb03d525b60ec3e3cb24da339ce3492108e",
64
+ "typeScriptVersion": "3.8"
65
65
  }