Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
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;
|