Skip to content

Commit 0f8f9f0

Browse files
committed
add AggregateError
1 parent d5160d1 commit 0f8f9f0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib/esnext.promise.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
interface AggregateError extends Error {
2+
errors: any[]
3+
}
4+
5+
interface AggregateErrorConstructor {
6+
new(errors: Iterable<any>, message?: string): AggregateError;
7+
(errors: Iterable<any>, message?: string): AggregateError;
8+
readonly prototype: AggregateError;
9+
}
10+
11+
declare var AggregateError: AggregateErrorConstructor;
12+
113
/**
214
* Represents the completion of an asynchronous operation
315
*/

0 commit comments

Comments
 (0)