UNPKG

@beignet/core

Version:

Core framework primitives for Beignet

14 lines 603 B
/** * User-facing copy overrides keyed by error code. */ export type ErrorMessageOverrides = Partial<Record<string, string>>; /** * Map an unknown error to user-facing copy. * * Non-`ContractError` values return the fallback. Override copy per catalog * code with `overrides`. Client-side input validation failures return a * generic "check the highlighted fields" message; other contract errors * return the error message. */ export declare function contractErrorMessage(error: unknown, fallback: string, overrides?: ErrorMessageOverrides): string; //# sourceMappingURL=error-messages.d.ts.map