UNPKG

vue-condition-watcher

Version:

Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions

8 lines (7 loc) 269 B
import { Cache } from '../types'; export declare function useCache(fetcher: (params: object) => Promise<any>, provider: Cache): { set: (key: any, value: any) => void; get: (key: any) => any; delete: (key: any) => void; cached: (key: any) => boolean; };