UNPKG

object-shape-tester

Version:
20 lines (19 loc) 571 B
import { type ErrorFunctionParameter } from '@sinclair/typebox/errors'; /** * Customer error message callback type. * * @category Internal */ export type ErrorMessageCallback = (this: void, error: Readonly<ErrorFunctionParameter>) => string; /** * Register a custom error message for the given schema kind. * * @category Internal */ export declare function registerErrorMessage(kind: string, callback: ErrorMessageCallback): void; /** * Sets the custom error messages. * * @category Internal */ export declare function setShapeDefinitionErrorMessage(): void;