main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
839 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types";
|
---|
| 2 | import type { KeywordCxt } from "../../compile/validate";
|
---|
| 3 | export type PropertyDependencies = {
|
---|
| 4 | [K in string]?: string[];
|
---|
| 5 | };
|
---|
| 6 | export interface DependenciesErrorParams {
|
---|
| 7 | property: string;
|
---|
| 8 | missingProperty: string;
|
---|
| 9 | depsCount: number;
|
---|
| 10 | deps: string;
|
---|
| 11 | }
|
---|
| 12 | export type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, {
|
---|
| 13 | [K in string]?: string[] | AnySchema;
|
---|
| 14 | }>;
|
---|
| 15 | export declare const error: KeywordErrorDefinition;
|
---|
| 16 | declare const def: CodeKeywordDefinition;
|
---|
| 17 | export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: {
|
---|
| 18 | [K in string]?: string[];
|
---|
| 19 | }): void;
|
---|
| 20 | export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void;
|
---|
| 21 | export default def;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.