1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | interface ErrorOptions {
|
22 | cause?: unknown;
|
23 | }
|
24 |
|
25 | interface Error {
|
26 | cause?: unknown;
|
27 | }
|
28 |
|
29 | interface ErrorConstructor {
|
30 | new (message?: string, options?: ErrorOptions): Error;
|
31 | (message?: string, options?: ErrorOptions): Error;
|
32 | }
|
33 |
|
34 | interface EvalErrorConstructor {
|
35 | new (message?: string, options?: ErrorOptions): EvalError;
|
36 | (message?: string, options?: ErrorOptions): EvalError;
|
37 | }
|
38 |
|
39 | interface RangeErrorConstructor {
|
40 | new (message?: string, options?: ErrorOptions): RangeError;
|
41 | (message?: string, options?: ErrorOptions): RangeError;
|
42 | }
|
43 |
|
44 | interface ReferenceErrorConstructor {
|
45 | new (message?: string, options?: ErrorOptions): ReferenceError;
|
46 | (message?: string, options?: ErrorOptions): ReferenceError;
|
47 | }
|
48 |
|
49 | interface SyntaxErrorConstructor {
|
50 | new (message?: string, options?: ErrorOptions): SyntaxError;
|
51 | (message?: string, options?: ErrorOptions): SyntaxError;
|
52 | }
|
53 |
|
54 | interface TypeErrorConstructor {
|
55 | new (message?: string, options?: ErrorOptions): TypeError;
|
56 | (message?: string, options?: ErrorOptions): TypeError;
|
57 | }
|
58 |
|
59 | interface URIErrorConstructor {
|
60 | new (message?: string, options?: ErrorOptions): URIError;
|
61 | (message?: string, options?: ErrorOptions): URIError;
|
62 | }
|
63 |
|
64 | interface AggregateErrorConstructor {
|
65 | new (
|
66 | errors: Iterable<any>,
|
67 | message?: string,
|
68 | options?: ErrorOptions
|
69 | ): AggregateError;
|
70 | (
|
71 | errors: Iterable<any>,
|
72 | message?: string,
|
73 | options?: ErrorOptions
|
74 | ): AggregateError;
|
75 | }
|