UNPKG

worker-fetch-looper

Version:

This is a Fetch looper based on Web Worker and Fetch API

13 lines (12 loc) 271 B
declare type TProps = { fn: (arg: any) => void; intialState?: any; }; export declare const usePollingWorker: ({ fn, intialState }: TProps) => { state: any; run: (arg: { type: string; payload: any; }) => void; }; export {};