error.d.ts 521 B

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