UNPKG

@hi18n/core

Version:

Message internationalization meets immutability and type-safety - core runtime

17 lines 561 B
/** * Error level. Diagnostics less important than these levels directly go to console. * * @since 0.1.7 (`@hi18n/core`) */ export declare type ErrorLevel = "error" | "warn"; /** * @since 0.1.7 (`@hi18n/core`) */ export declare type ErrorHandler = (e: Error, level: ErrorLevel) => void; /** * By default, it just throws the error if `level === "error"` and reports in the console otherwise. * * @since 0.1.7 (`@hi18n/core`) */ export declare function defaultErrorHandler(e: Error, level: ErrorLevel): void; //# sourceMappingURL=error-handling.d.ts.map