source: imaps-frontend/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 879 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}
8type PropKeyword = "properties" | "optionalProperties";
9type PropSchema = {
10 [P in string]?: SchemaObject;
11};
12export 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.