UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

11 lines (10 loc) 546 B
import { type BaseError, type BaseErrorOptions } from "./BaseError.js"; /** * Aggregate an array of errors into a single combined error. * - Extends (and shadows) the built-in `AggregateError` but with additional allowed options like `caller` */ export declare class Errors extends AggregateError implements BaseError { /** Provide additional named contextual data that is relevant to the `Error` instance. */ readonly [key: string]: unknown; constructor(errors: Iterable<unknown>, message?: string, options?: BaseErrorOptions); }