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

10 lines (9 loc) 465 B
import { SubscriptionOptions } from '@prefecthq/vue-compositions'; import { ComputedRef } from 'vue'; import { MaybeRef } from '../types'; type StateResource = { stateName: string | null; }; export declare function useStatePolling(stateName: MaybeRef<string | null>, interval?: number): ComputedRef<SubscriptionOptions>; export declare function useStatePolling(resource: MaybeRef<StateResource>, interval?: number): ComputedRef<SubscriptionOptions>; export {};