UNPKG

@metamask/kernel-errors

Version:
8 lines 288 B
/** * Coerce an unknown problem into an Error object. * * @param problem - Whatever was caught. * @returns The problem if it is an Error, or a new Error with the problem as the cause. */ export declare function toError(problem: unknown): Error; //# sourceMappingURL=toError.d.cts.map