@types/async 3.2.9 → 3.2.10
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 +39 -8
- async/package.json +7 -2
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: Mon,
|
|
11
|
+
* Last updated: Mon, 15 Nov 2021 17:01:34 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),
|
|
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), [Tümay Çeber](https://github.com/brendtumi), and [Andrew Pensinger](https://github.com/apnsngr).
|
async/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// Etienne Rossignon <https://github.com/erossignon>
|
|
10
10
|
// Lifeng Zhu <https://github.com/Juliiii>
|
|
11
11
|
// Tümay Çeber <https://github.com/brendtumi>
|
|
12
|
+
// Andrew Pensinger <https://github.com/apnsngr>
|
|
12
13
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
13
14
|
// TypeScript Version: 2.3
|
|
14
15
|
|
|
@@ -316,14 +317,44 @@ export function parallel<T, R, E = Error>(tasks: Array<AsyncFunction<T, E>> | Di
|
|
|
316
317
|
export function parallelLimit<T, E = Error>(tasks: Array<AsyncFunction<T, E>>, limit: number, callback?: AsyncResultArrayCallback<T, E>): void;
|
|
317
318
|
export function parallelLimit<T, E = Error>(tasks: Dictionary<AsyncFunction<T, E>>, limit: number, callback?: AsyncResultObjectCallback<T, E>): void;
|
|
318
319
|
export function parallelLimit<T, R, E = Error>(tasks: Array<AsyncFunction<T, E>> | Dictionary<AsyncFunction<T, E>>, limit: number): Promise<R>;
|
|
319
|
-
|
|
320
|
-
export function whilst<
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
export function
|
|
326
|
-
|
|
320
|
+
|
|
321
|
+
export function whilst<T, E = Error>(
|
|
322
|
+
test: (cb: AsyncBooleanResultCallback) => void,
|
|
323
|
+
fn: AsyncFunctionEx<T, E>,
|
|
324
|
+
callback: AsyncFunctionEx<T, E>
|
|
325
|
+
): void;
|
|
326
|
+
export function whilst<T, R, E = Error>(
|
|
327
|
+
test: (cb: AsyncBooleanResultCallback) => void,
|
|
328
|
+
fn: AsyncFunctionEx<T, E>
|
|
329
|
+
): Promise<R>;
|
|
330
|
+
export function doWhilst<T, E = Error>(
|
|
331
|
+
fn: AsyncFunctionEx<T, E>,
|
|
332
|
+
test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
|
|
333
|
+
callback: AsyncFunctionEx<T, E>
|
|
334
|
+
): void;
|
|
335
|
+
export function doWhilst<T, R, E = Error>(
|
|
336
|
+
fn: AsyncFunctionEx<T, E>,
|
|
337
|
+
test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void
|
|
338
|
+
): Promise<R>;
|
|
339
|
+
export function until<T, E = Error>(
|
|
340
|
+
test: (cb: AsyncBooleanResultCallback) => void,
|
|
341
|
+
fn: AsyncFunctionEx<T, E>,
|
|
342
|
+
callback: AsyncFunctionEx<T, E>
|
|
343
|
+
): void;
|
|
344
|
+
export function until<T, R, E = Error>(
|
|
345
|
+
test: (cb: AsyncBooleanResultCallback) => void,
|
|
346
|
+
fn: AsyncFunctionEx<T, E>
|
|
347
|
+
): Promise<R>;
|
|
348
|
+
export function doUntil<T, E = Error>(
|
|
349
|
+
fn: AsyncFunctionEx<T, E>,
|
|
350
|
+
test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
|
|
351
|
+
callback: AsyncFunctionEx<T, E>
|
|
352
|
+
): void;
|
|
353
|
+
export function doUntil<T, R, E = Error>(
|
|
354
|
+
fn: AsyncFunctionEx<T, E>,
|
|
355
|
+
test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void
|
|
356
|
+
): Promise<R>;
|
|
357
|
+
|
|
327
358
|
export function during<E = Error>(test: (testCallback: AsyncBooleanResultCallback<E>) => void, fn: AsyncVoidFunction<E>, callback: ErrorCallback<E>): void;
|
|
328
359
|
export function doDuring<E = Error>(fn: AsyncVoidFunction<E>, test: (testCallback: AsyncBooleanResultCallback<E>) => void, callback: ErrorCallback<E>): void;
|
|
329
360
|
export function forever<E = Error>(next: (next: ErrorCallback<E>) => void, errBack: ErrorCallback<E>): void;
|
async/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/async",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "TypeScript definitions for Async",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"name": "Tümay Çeber",
|
|
50
50
|
"url": "https://github.com/brendtumi",
|
|
51
51
|
"githubUsername": "brendtumi"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "Andrew Pensinger",
|
|
55
|
+
"url": "https://github.com/apnsngr",
|
|
56
|
+
"githubUsername": "apnsngr"
|
|
52
57
|
}
|
|
53
58
|
],
|
|
54
59
|
"main": "",
|
|
@@ -60,6 +65,6 @@
|
|
|
60
65
|
},
|
|
61
66
|
"scripts": {},
|
|
62
67
|
"dependencies": {},
|
|
63
|
-
"typesPublisherContentHash": "
|
|
68
|
+
"typesPublisherContentHash": "59988f58dbf614557dca35731704e62c7ac12321c056e72f522cfca75059a6c9",
|
|
64
69
|
"typeScriptVersion": "3.7"
|
|
65
70
|
}
|