2024-08-20 02:45:04 +03:00

12 lines
461 B
TypeScript

interface AggregateError extends Error {
errors: any[];
}
interface AggregateErrorConstructor {
new (errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare let AggregateErrorImpl: AggregateErrorConstructor;
export { AggregateErrorImpl as AggregateError };
export declare function isAggregateError(error: Error): error is AggregateError;