UNPKG

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