@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
17 lines (16 loc) • 726 B
TypeScript
export type SchemaValueError = string | SchemaValuePropertyError | SchemaValueIndexError;
export type SchemaValuePropertyError = {
property: string;
errors: SchemaValueError[];
};
export declare function isSchemaValuePropertyError(value: SchemaValueError): value is SchemaValuePropertyError;
export type SchemaValueIndexError = {
index: number;
errors: SchemaValueError[];
};
export declare function isSchemaValueIndexError(value: SchemaValueError): value is SchemaValueIndexError;
export type SchemaValuesValidationResponse = {
errors: SchemaValueError[];
valid: boolean;
};
export declare function isNotStringError(value: SchemaValueError): value is SchemaValuePropertyError | SchemaValueIndexError;