UNPKG

@westacks/vortex

Version:

Server-based routing for SPAs

12 lines (11 loc) 294 B
import { RouterRequestConfig } from './router'; type PollConfig = { autoStart?: boolean; keepAlive?: boolean; }; type Poll = { start: () => void; stop: () => void; }; export declare function usePoll(interval: number, config?: RouterRequestConfig & PollConfig): Poll; export {};