Files
2026-02-10 01:14:19 +00:00

5 lines
175 B
TypeScript

/**
* Sometimes a non-error is thrown, wrap it as an Error instance to ensure a consistent Error interface.
*/
export declare function toError(thrownValue: unknown): Error;