source: trip-planner-front/node_modules/ajv/dist/jtd.d.ts@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.0 KB
Line 
1import type { AnySchemaObject, SchemaObject, JTDParser } from "./types";
2import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema";
3import AjvCore, { CurrentOptions } from "./core";
4declare type JTDOptions = CurrentOptions & {
5 strict?: never;
6 allowMatchingProperties?: never;
7 allowUnionTypes?: never;
8 validateFormats?: never;
9 $data?: never;
10 verbose?: boolean;
11 $comment?: never;
12 formats?: never;
13 loadSchema?: never;
14 useDefaults?: never;
15 coerceTypes?: never;
16 next?: never;
17 unevaluated?: never;
18 dynamicRef?: never;
19 meta?: boolean;
20 defaultMeta?: never;
21 inlineRefs?: boolean;
22 loopRequired?: never;
23 multipleOfPrecision?: never;
24};
25declare class Ajv extends AjvCore {
26 constructor(opts?: JTDOptions);
27 _addVocabularies(): void;
28 _addDefaultMetaSchema(): void;
29 defaultMeta(): string | AnySchemaObject | undefined;
30 compileSerializer<T = unknown>(schema: SchemaObject): (data: T) => string;
31 compileSerializer<T = unknown>(schema: JTDSchemaType<T>): (data: T) => string;
32 compileParser<T = unknown>(schema: SchemaObject): JTDParser<T>;
33 compileParser<T = unknown>(schema: JTDSchemaType<T>): JTDParser<T>;
34 private _compileSerializer;
35 private _compileParser;
36}
37export default Ajv;
38export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, JTDParser, } from "./types";
39export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
40export { SchemaCxt, SchemaObjCxt } from "./compile";
41export { KeywordCxt } from "./compile/validate";
42export { JTDErrorObject } from "./vocabularies/jtd";
43export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
44export { JTDSchemaType, SomeJTDSchemaType, JTDDataType };
45export { JTDOptions };
Note: See TracBrowser for help on using the repository browser.