UNPKG

alwz

Version:

Extendable library for typecasting

19 lines 522 B
/** * @description Error with value property * @property {any} [value] - can be used to store additional cause info */ export declare class ErrorValue extends Error { value?: unknown; /** * @param {string} [message] * @param {any} [value] * @param {any} [options] */ constructor(message?: string, value?: unknown, options?: unknown); /** * @description throw this instance of error */ throw(): void; } export default ErrorValue; //# sourceMappingURL=ErrorValue.d.ts.map