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

15 lines (14 loc) 653 B
import { SubscriptionOptions, UseSubscription } from '@prefecthq/vue-compositions'; import { ComputedRef, MaybeRefOrGetter } from 'vue'; import { Flow, FlowsPaginationFilter } from '../models'; import { WorkspaceFlowsApi } from '../services'; type UseFlows = { subscription: UseSubscription<WorkspaceFlowsApi['getFlowsPaginated']>; flows: ComputedRef<Flow[]>; count: ComputedRef<number>; limit: ComputedRef<number>; pages: ComputedRef<number>; page: ComputedRef<number>; }; export declare function useFlows(filter?: MaybeRefOrGetter<FlowsPaginationFilter | null | undefined>, options?: SubscriptionOptions): UseFlows; export {};