UNPKG

521 BTypeScriptView Raw
1import type { KeywordErrorDefinition, KeywordErrorCxt, ErrorObject } from "../../types";
2import { Code } from "../../compile/codegen";
3export type _JTDTypeError<K extends string, T extends string, S> = ErrorObject<K, {
4 type: T;
5 nullable: boolean;
6}, S>;
7export declare function typeError(t: string): KeywordErrorDefinition;
8export declare function typeErrorMessage({ parentSchema }: KeywordErrorCxt, t: string): string;
9export declare function typeErrorParams({ parentSchema }: KeywordErrorCxt, t: string): Code;