object-shape-tester
Version:
Test object properties and value types.
20 lines (19 loc) • 571 B
TypeScript
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;