UNPKG

432 BTypeScriptView Raw
1import * as makeError from "make-error";
2/**
3 * Create a new error instance of `cause` property support.
4 */
5export declare class BaseError extends makeError.BaseError {
6 cause?: Error | undefined;
7 constructor(message?: string, cause?: Error | undefined);
8}
9/**
10 * Capture the full stack trace of any error instance.
11 */
12export declare function fullStack(error: Error | BaseError): string;
13//# sourceMappingURL=index.d.ts.map
\No newline at end of file