@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.
- async/README.md +2 -2
- async/index.d.ts +44 -12
- 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:
|
|
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), [
|
|
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
|
|
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
|
-
|
|
319
|
-
export function whilst<
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
export function
|
|
325
|
-
|
|
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
|
|
344
|
-
export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks<R, E>, callback
|
|
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.
|
|
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": "
|
|
64
|
-
"typeScriptVersion": "3.
|
|
63
|
+
"typesPublisherContentHash": "a84804e41d003d56b766481633495eb03d525b60ec3e3cb24da339ce3492108e",
|
|
64
|
+
"typeScriptVersion": "3.8"
|
|
65
65
|
}
|