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

17 lines (16 loc) 788 B
import { SubscriptionOptions, UseSubscription } from '@prefecthq/vue-compositions'; import { ComputedRef, MaybeRefOrGetter } from 'vue'; import { FlowRun, FlowRunsPaginationFilter } from '../models'; import { WorkspaceFlowRunsApi } from '../services'; type UsePaginatedFlowRuns = { subscription: UseSubscription<WorkspaceFlowRunsApi['getFlowRunsPaginated']>; flowRuns: ComputedRef<FlowRun[]>; count: ComputedRef<number>; limit: ComputedRef<number>; pages: ComputedRef<number>; page: ComputedRef<number>; error: ComputedRef<unknown | null>; errored: ComputedRef<boolean>; }; export declare function usePaginatedFlowRuns(filter?: MaybeRefOrGetter<FlowRunsPaginationFilter | null | undefined>, options?: SubscriptionOptions): UsePaginatedFlowRuns; export {};