UNPKG

@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_.

13 lines (12 loc) 721 B
import { SubscriptionOptions } from '@prefecthq/vue-compositions'; import { ComputedRef, MaybeRefOrGetter } from 'vue'; import { UseSubscriptions } from '../compositions/useSubscriptions'; import { FlowRunsFilter } from '../models/Filters'; import { WorkspaceFlowRunsApi } from '../services/WorkspaceFlowRunsApi'; type FlowRunsAction = WorkspaceFlowRunsApi['getFlowRunsCount'] | (() => undefined); export type UseFlowRunsCompleteness = { completeness: ComputedRef<number | undefined>; subscriptions: UseSubscriptions<FlowRunsAction>; }; export declare function useFlowRunCompleteness(filter: MaybeRefOrGetter<FlowRunsFilter | null | undefined>, options?: SubscriptionOptions): UseFlowRunsCompleteness; export {};