@types/async 3.2.24 → 3.2.25
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 +31 -18
- 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: Sat, 02 Aug 2025 04:42:43 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
async/index.d.ts
CHANGED
|
@@ -431,8 +431,13 @@ export function someLimit<T, E = Error>(
|
|
|
431
431
|
arr: IterableCollection<T>,
|
|
432
432
|
limit: number,
|
|
433
433
|
iterator: AsyncBooleanIterator<T, E>,
|
|
434
|
-
callback
|
|
434
|
+
callback: AsyncBooleanResultCallback<E>,
|
|
435
435
|
): void;
|
|
436
|
+
export function someLimit<T, E = Error>(
|
|
437
|
+
arr: IterableCollection<T>,
|
|
438
|
+
limit: number,
|
|
439
|
+
iterator: AsyncBooleanIterator<T, E>,
|
|
440
|
+
): Promise<boolean>;
|
|
436
441
|
export const any: typeof some;
|
|
437
442
|
export const anySeries: typeof someSeries;
|
|
438
443
|
export const anyLimit: typeof someLimit;
|
|
@@ -576,16 +581,6 @@ export function doUntil<T, R, E = Error>(
|
|
|
576
581
|
test: (/* ...results: T[], */ cb: AsyncBooleanResultCallback) => void,
|
|
577
582
|
): Promise<R>;
|
|
578
583
|
|
|
579
|
-
export function during<E = Error>(
|
|
580
|
-
test: (testCallback: AsyncBooleanResultCallback<E>) => void,
|
|
581
|
-
fn: AsyncVoidFunction<E>,
|
|
582
|
-
callback: ErrorCallback<E>,
|
|
583
|
-
): void;
|
|
584
|
-
export function doDuring<E = Error>(
|
|
585
|
-
fn: AsyncVoidFunction<E>,
|
|
586
|
-
test: (testCallback: AsyncBooleanResultCallback<E>) => void,
|
|
587
|
-
callback: ErrorCallback<E>,
|
|
588
|
-
): void;
|
|
589
584
|
export function forever<E = Error>(next: (next: ErrorCallback<E>) => void, errBack: ErrorCallback<E>): void;
|
|
590
585
|
export function waterfall<T>(tasks: Function[]): Promise<T>;
|
|
591
586
|
export function waterfall<T, E = Error>(tasks: Function[], callback: AsyncResultCallback<T, E>): void;
|
|
@@ -615,7 +610,8 @@ export function auto<R extends Dictionary<any>, E = Error>(
|
|
|
615
610
|
tasks: AsyncAutoTasks<R, E>,
|
|
616
611
|
callback: AsyncResultCallback<R, E>,
|
|
617
612
|
): void;
|
|
618
|
-
export function autoInject<E = Error>(tasks: any, callback
|
|
613
|
+
export function autoInject<E = Error>(tasks: any, callback: AsyncResultCallback<any, E>): void;
|
|
614
|
+
export function autoInject(tasks: any): Promise<any>;
|
|
619
615
|
|
|
620
616
|
export interface RetryOptions<E> {
|
|
621
617
|
times?: number | undefined;
|
|
@@ -688,29 +684,46 @@ export function timesLimit<T, E = Error>(
|
|
|
688
684
|
export function transform<T, R, E = Error>(
|
|
689
685
|
arr: T[],
|
|
690
686
|
iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void,
|
|
691
|
-
callback
|
|
687
|
+
callback: AsyncResultArrayCallback<T, E>,
|
|
692
688
|
): void;
|
|
689
|
+
export function transform<T, R, E = Error>(
|
|
690
|
+
arr: T[],
|
|
691
|
+
iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void,
|
|
692
|
+
): Promise<Array<T | undefined>>;
|
|
693
693
|
export function transform<T, R, E = Error>(
|
|
694
694
|
arr: T[],
|
|
695
695
|
acc: R[],
|
|
696
696
|
iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void,
|
|
697
|
-
callback
|
|
697
|
+
callback: AsyncResultArrayCallback<T, E>,
|
|
698
698
|
): void;
|
|
699
|
-
|
|
699
|
+
export function transform<T, R, E = Error>(
|
|
700
|
+
arr: T[],
|
|
701
|
+
acc: R[],
|
|
702
|
+
iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void,
|
|
703
|
+
): Promise<Array<T | undefined>>;
|
|
700
704
|
export function transform<T, R, E = Error>(
|
|
701
705
|
arr: { [key: string]: T },
|
|
702
706
|
iteratee: (acc: { [key: string]: R }, item: T, key: string, callback: (error?: E) => void) => void,
|
|
703
|
-
callback
|
|
707
|
+
callback: AsyncResultObjectCallback<T, E>,
|
|
704
708
|
): void;
|
|
705
|
-
|
|
709
|
+
export function transform<T, R, E = Error>(
|
|
710
|
+
arr: { [key: string]: T },
|
|
711
|
+
iteratee: (acc: { [key: string]: R }, item: T, key: string, callback: (error?: E) => void) => void,
|
|
712
|
+
): Promise<Dictionary<T | undefined>>;
|
|
706
713
|
export function transform<T, R, E = Error>(
|
|
707
714
|
arr: { [key: string]: T },
|
|
708
715
|
acc: { [key: string]: R },
|
|
709
716
|
iteratee: (acc: { [key: string]: R }, item: T, key: string, callback: (error?: E) => void) => void,
|
|
710
|
-
callback
|
|
717
|
+
callback: AsyncResultObjectCallback<T, E>,
|
|
711
718
|
): void;
|
|
719
|
+
export function transform<T, R, E = Error>(
|
|
720
|
+
arr: { [key: string]: T },
|
|
721
|
+
acc: { [key: string]: R },
|
|
722
|
+
iteratee: (acc: { [key: string]: R }, item: T, key: string, callback: (error?: E) => void) => void,
|
|
723
|
+
): Promise<Dictionary<T | undefined>>;
|
|
712
724
|
|
|
713
725
|
export function race<T, E = Error>(tasks: Array<AsyncFunction<T, E>>, callback: AsyncResultCallback<T, E>): void;
|
|
726
|
+
export function race<T, E = Error>(tasks: Array<AsyncFunction<T, E>>): Promise<T>;
|
|
714
727
|
|
|
715
728
|
export function tryEach<T, E = Error>(
|
|
716
729
|
tasks: IterableCollection<AsyncFunction<T>>,
|
async/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/async",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.25",
|
|
4
4
|
"description": "TypeScript definitions for async",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {},
|
|
57
57
|
"dependencies": {},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
"peerDependencies": {},
|
|
59
|
+
"typesPublisherContentHash": "78c9eaf5ae7faefc30681f72594a9ea8c5a857263dbd6989df82c5cb2b085c10",
|
|
60
|
+
"typeScriptVersion": "5.2"
|
|
60
61
|
}
|