source: trip-planner-front/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts

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

initial commit

  • Property mode set to 100644
File size: 903 bytes
Line 
1import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types";
2import type { KeywordCxt } from "../../compile/validate";
3import { _JTDTypeError } from "./error";
4declare enum PropError {
5 Additional = "additional",
6 Missing = "missing"
7}
8declare type PropKeyword = "properties" | "optionalProperties";
9declare type PropSchema = {
10 [P in string]?: SchemaObject;
11};
12export 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>;
19export declare const error: KeywordErrorDefinition;
20declare const def: CodeKeywordDefinition;
21export declare function validateProperties(cxt: KeywordCxt): void;
22export default def;
Note: See TracBrowser for help on using the repository browser.