UNPKG

@iredium/butterfly

Version:
8 lines (7 loc) 282 B
export declare class BaseError extends Error { protected code: number; protected payload: object; constructor(name: string, message?: string, code?: number, payload?: object); static toJSON(error: BaseError): object; static toString(error: BaseError): string; }