@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_.
15 lines (14 loc) • 682 B
TypeScript
import { MaybeRefOrGetter, Ref } from 'vue';
import { SchemaProperty } from '../../schemas/types/schema';
import { PrefectKind } from '../../schemas/types/schemaValues';
import { SchemaValueError } from '../../schemas/types/schemaValuesValidationResponse';
import { SchemaValue } from '../../types';
export type UsePrefectKindValueParameters = {
property: MaybeRefOrGetter<SchemaProperty>;
value: Ref<SchemaValue>;
};
export type UsePrefectKindValue = {
errors: Ref<SchemaValueError[]>;
setKind: (to: PrefectKind) => Promise<void>;
};
export declare function usePrefectKindValue({ property, value: schemaValue }: UsePrefectKindValueParameters): UsePrefectKindValue;