@types/async 3.2.6 → 3.2.7
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 +1 -1
- async/index.d.ts +6 -6
- async/package.json +4 -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:
|
|
11
|
+
* Last updated: Tue, 06 Jul 2021 18:05:36 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `async`
|
|
14
14
|
|
async/index.d.ts
CHANGED
|
@@ -345,9 +345,9 @@ export function auto<R extends Dictionary<any>, E = Error>(tasks: AsyncAutoTasks
|
|
|
345
345
|
export function autoInject<E = Error>(tasks: any, callback?: AsyncResultCallback<any, E>): void;
|
|
346
346
|
|
|
347
347
|
export interface RetryOptions<E> {
|
|
348
|
-
times?: number;
|
|
349
|
-
interval?: number | ((retryCount: number) => number);
|
|
350
|
-
errorFilter?: (error: E) => boolean;
|
|
348
|
+
times?: number | undefined;
|
|
349
|
+
interval?: number | ((retryCount: number) => number) | undefined;
|
|
350
|
+
errorFilter?: ((error: E) => boolean) | undefined;
|
|
351
351
|
}
|
|
352
352
|
export function retry<T, E = Error>(
|
|
353
353
|
task: (() => Promise<T>) | ((callback: AsyncResultCallback<T, E>) => void),
|
|
@@ -368,15 +368,15 @@ export function retry<T, E = Error>(
|
|
|
368
368
|
|
|
369
369
|
export function retryable<T, E = Error>(task: AsyncFunction<T, E>): AsyncFunction<T, E>;
|
|
370
370
|
export function retryable<T, E = Error>(
|
|
371
|
-
opts: number | (RetryOptions<E> & { arity?: number }),
|
|
371
|
+
opts: number | (RetryOptions<E> & { arity?: number | undefined }),
|
|
372
372
|
task: AsyncFunction<T, E>,
|
|
373
373
|
): AsyncFunction<T, E>;
|
|
374
374
|
export function apply<E = Error>(fn: Function, ...args: any[]): AsyncFunction<any, E>;
|
|
375
375
|
export function nextTick(callback: Function, ...args: any[]): void;
|
|
376
376
|
export const setImmediate: typeof nextTick;
|
|
377
377
|
|
|
378
|
-
export function reflect<T, E = Error>(fn: AsyncFunction<T, E>): (callback: (err: null, result: {error?: E, value?: T}) => void) => void;
|
|
379
|
-
export function reflectAll<T, E = Error>(tasks: Array<AsyncFunction<T, E>>): Array<(callback: (err: null, result: {error?: E, value?: T}) => void) => void>;
|
|
378
|
+
export function reflect<T, E = Error>(fn: AsyncFunction<T, E>): (callback: (err: null, result: {error?: E | undefined, value?: T | undefined}) => void) => void;
|
|
379
|
+
export function reflectAll<T, E = Error>(tasks: Array<AsyncFunction<T, E>>): Array<(callback: (err: null, result: {error?: E | undefined, value?: T | undefined}) => void) => void>;
|
|
380
380
|
|
|
381
381
|
export function timeout<T, E = Error>(fn: AsyncFunction<T, E>, milliseconds: number, info?: any): AsyncFunction<T, E>;
|
|
382
382
|
export function timeout<T, R, E = Error>(fn: AsyncResultIterator<T, R, E>, milliseconds: number, info?: any): AsyncResultIterator<T, R, E>;
|
async/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/async",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"description": "TypeScript definitions for Async",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -59,6 +60,6 @@
|
|
|
59
60
|
},
|
|
60
61
|
"scripts": {},
|
|
61
62
|
"dependencies": {},
|
|
62
|
-
"typesPublisherContentHash": "
|
|
63
|
-
"typeScriptVersion": "3.
|
|
63
|
+
"typesPublisherContentHash": "a7f55effef6626a2acf65e1b02c8f8269289bd42332c90fcb08bae53adbc64c8",
|
|
64
|
+
"typeScriptVersion": "3.6"
|
|
64
65
|
}
|