X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fnode_modules%2Fajv%2Fdist%2Fcore.d.ts;h=0ac16ee548b52cfbde6dc3d93176a9606b304c0d;hp=eb057607782e100a8ae24869ee65cf51b173c61a;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/core.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/core.d.ts index eb057607..0ac16ee5 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/core.d.ts +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/dist/core.d.ts @@ -8,11 +8,11 @@ export { KeywordCxt } from "./compile/validate"; export { DefinedError } from "./vocabularies/errors"; export { JSONType } from "./compile/rules"; export { JSONSchemaType } from "./types/json-schema"; -export { JTDSchemaType } from "./types/jtd-schema"; +export { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen"; -import type { Schema, AnySchema, AnySchemaObject, SchemaObject, AsyncSchema, Vocabulary, KeywordDefinition, AddedKeywordDefinition, AnyValidateFunction, ValidateFunction, AsyncValidateFunction, ErrorObject, Format, AddedFormat } from "./types"; +import type { Schema, AnySchema, AnySchemaObject, SchemaObject, AsyncSchema, Vocabulary, KeywordDefinition, AddedKeywordDefinition, AnyValidateFunction, ValidateFunction, AsyncValidateFunction, ErrorObject, Format, AddedFormat, RegExpEngine } from "./types"; import type { JSONSchemaType } from "./types/json-schema"; -import type { JTDSchemaType } from "./types/jtd-schema"; +import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema"; import ValidationError from "./runtime/validation_error"; import MissingRefError from "./compile/ref_error"; import { ValidationRules } from "./compile/rules"; @@ -33,6 +33,10 @@ export interface CurrentOptions { allErrors?: boolean; verbose?: boolean; discriminator?: boolean; + unicodeRegExp?: boolean; + timestamp?: "string" | "date"; + parseDate?: boolean; + allowDate?: boolean; $comment?: true | ((comment: string, schemaPath?: string, rootSchema?: AnySchemaObject) => unknown); formats?: { [Name in string]?: Format; @@ -49,6 +53,7 @@ export interface CurrentOptions { next?: boolean; unevaluated?: boolean; dynamicRef?: boolean; + schemaId?: "id" | "$id"; jtd?: boolean; meta?: SchemaObject | boolean; defaultMeta?: string | AnySchemaObject; @@ -60,6 +65,7 @@ export interface CurrentOptions { loopEnum?: number; ownProperties?: boolean; multipleOfPrecision?: number; + int32range?: boolean; messages?: boolean; code?: CodeOptions; } @@ -70,8 +76,10 @@ export interface CodeOptions { formats?: Code; source?: boolean; process?: (code: string, schema?: SchemaEnv) => string; + regExp?: RegExpEngine; } interface InstanceCodeOptions extends CodeOptions { + regExp: RegExpEngine; optimize: number; } interface DeprecatedOptions { @@ -83,7 +91,7 @@ interface DeprecatedOptions { unicode?: boolean; } declare type RequiredInstanceOptions = { - [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "addUsedSchema" | "validateSchema" | "validateFormats"]: NonNullable; + [K in "strictSchema" | "strictNumbers" | "strictTypes" | "strictTuples" | "strictRequired" | "inlineRefs" | "loopRequired" | "loopEnum" | "meta" | "messages" | "schemaId" | "addUsedSchema" | "validateSchema" | "validateFormats" | "int32range" | "unicodeRegExp"]: NonNullable; } & { code: InstanceCodeOptions; }; @@ -122,10 +130,12 @@ export default class Ajv { validate(schemaKeyRef: AnySchema | string, data: unknown): boolean | Promise; validate(schema: Schema | JSONSchemaType | string, data: unknown): data is T; validate(schema: JTDSchemaType, data: unknown): data is T; + validate(schema: T, data: unknown): data is JTDDataType; validate(schema: AsyncSchema, data: unknown | T): Promise; validate(schemaKeyRef: AnySchema | string, data: unknown): data is T | Promise; compile(schema: Schema | JSONSchemaType, _meta?: boolean): ValidateFunction; compile(schema: JTDSchemaType, _meta?: boolean): ValidateFunction; + compile(schema: T, _meta?: boolean): ValidateFunction>; compile(schema: AsyncSchema, _meta?: boolean): AsyncValidateFunction; compile(schema: AnySchema, _meta?: boolean): AnyValidateFunction; compileAsync(schema: SchemaObject | JSONSchemaType, _meta?: boolean): Promise>;