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

16 lines (15 loc) 763 B
import { UseSubscription } from '@prefecthq/vue-compositions'; import { ComputedRef, MaybeRefOrGetter } from 'vue'; import { PaginationOptions } from '../compositions/usePagination'; import { Deployment, DeploymentsPaginationFilter } from '../models'; import { WorkspaceDeploymentsApi } from '../services'; type UseDeployments = { subscription: UseSubscription<WorkspaceDeploymentsApi['getDeploymentsPaginated']>; deployments: ComputedRef<Deployment[]>; count: ComputedRef<number>; limit: ComputedRef<number>; pages: ComputedRef<number>; page: ComputedRef<number>; }; export declare function useDeployments(filter?: MaybeRefOrGetter<DeploymentsPaginationFilter | null | undefined>, options?: PaginationOptions): UseDeployments; export {};