Urara-Blog/node_modules/.pnpm-store/v3/files/86/998b9edb3ef8907093e6987c4bd9392b77e73d2d0ad5fd9935ca6be7babea92a680a5380f64a5b0e80e58d807d41e6159e10e3d4bfb5a23ca803790417f5ff
2022-08-14 01:14:53 +08:00

22 lines
903 B
Text

import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types";
import type { KeywordCxt } from "../../compile/validate";
import { _JTDTypeError } from "./error";
declare enum PropError {
Additional = "additional",
Missing = "missing"
}
declare type PropKeyword = "properties" | "optionalProperties";
declare type PropSchema = {
[P in string]?: SchemaObject;
};
export declare type JTDPropertiesError = _JTDTypeError<PropKeyword, "object", PropSchema> | ErrorObject<PropKeyword, {
error: PropError.Additional;
additionalProperty: string;
}, PropSchema> | ErrorObject<PropKeyword, {
error: PropError.Missing;
missingProperty: string;
}, PropSchema>;
export declare const error: KeywordErrorDefinition;
declare const def: CodeKeywordDefinition;
export declare function validateProperties(cxt: KeywordCxt): void;
export default def;