keyword.d.ts 679 B

12345678
  1. import type { KeywordCxt } from ".";
  2. import type { AddedKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition } from "../../types";
  3. import type { SchemaObjCxt } from "..";
  4. import type { JSONType } from "../rules";
  5. export declare function macroKeywordCode(cxt: KeywordCxt, def: MacroKeywordDefinition): void;
  6. export declare function funcKeywordCode(cxt: KeywordCxt, def: FuncKeywordDefinition): void;
  7. export declare function validSchemaType(schema: unknown, schemaType: JSONType[], allowUndefined?: boolean): boolean;
  8. export declare function validateKeywordUsage({ schema, opts, self, errSchemaPath }: SchemaObjCxt, def: AddedKeywordDefinition, keyword: string): void;