@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_.
10 lines (9 loc) • 502 B
TypeScript
import { UseSubscription } from '@prefecthq/vue-compositions';
import { ComputedRef, MaybeRefOrGetter } from 'vue';
import { Artifact } from '../models';
import { WorkspaceArtifactsApi } from '../services/WorkspaceArtifactsApi';
export type UseTaskRunResult = {
subscription: UseSubscription<WorkspaceArtifactsApi['getArtifacts']>;
result: ComputedRef<Artifact | undefined>;
};
export declare function useTaskRunResult(taskRunId: MaybeRefOrGetter<string | null | undefined>): UseTaskRunResult;