2019.d.ts 1.1 KB

1234567891011121314151617
  1. export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, } from "./types";
  2. export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
  3. export { SchemaCxt, SchemaObjCxt } from "./compile";
  4. import KeywordCxt from "./compile/context";
  5. export { KeywordCxt };
  6. export { DefinedError } from "./vocabularies/errors";
  7. export { JSONType } from "./compile/rules";
  8. export { JSONSchemaType } from "./types/json-schema";
  9. export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
  10. import type { AnySchemaObject } from "./types";
  11. import AjvCore, { Options } from "./core";
  12. export default class Ajv2019 extends AjvCore {
  13. constructor(opts?: Options);
  14. _addVocabularies(): void;
  15. _addDefaultMetaSchema(): void;
  16. defaultMeta(): string | AnySchemaObject | undefined;
  17. }