.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / dist / vocabularies / jtd / properties.d.ts
1 import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types";
2 import type { KeywordCxt } from "../../compile/validate";
3 import { _JTDTypeError } from "./error";
4 declare enum PropError {
5     Additional = "additional",
6     Missing = "missing"
7 }
8 declare type PropKeyword = "properties" | "optionalProperties";
9 declare type PropSchema = {
10     [P in string]?: SchemaObject;
11 };
12 export declare type JTDPropertiesError = _JTDTypeError<PropKeyword, "object", PropSchema> | ErrorObject<PropKeyword, {
13     error: PropError.Additional;
14     additionalProperty: string;
15 }, PropSchema> | ErrorObject<PropKeyword, {
16     error: PropError.Missing;
17     missingProperty: string;
18 }, PropSchema>;
19 export declare const error: KeywordErrorDefinition;
20 declare const def: CodeKeywordDefinition;
21 export declare function validateProperties(cxt: KeywordCxt): void;
22 export default def;