Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
22 lines
839 B
Plaintext
22 lines
839 B
Plaintext
import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaMap, AnySchema } from "../../types";
|
|
import type { KeywordCxt } from "../../compile/validate";
|
|
export type PropertyDependencies = {
|
|
[K in string]?: string[];
|
|
};
|
|
export interface DependenciesErrorParams {
|
|
property: string;
|
|
missingProperty: string;
|
|
depsCount: number;
|
|
deps: string;
|
|
}
|
|
export type DependenciesError = ErrorObject<"dependencies", DependenciesErrorParams, {
|
|
[K in string]?: string[] | AnySchema;
|
|
}>;
|
|
export declare const error: KeywordErrorDefinition;
|
|
declare const def: CodeKeywordDefinition;
|
|
export declare function validatePropertyDeps(cxt: KeywordCxt, propertyDeps?: {
|
|
[K in string]?: string[];
|
|
}): void;
|
|
export declare function validateSchemaDeps(cxt: KeywordCxt, schemaDeps?: SchemaMap): void;
|
|
export default def;
|