UNPKG

react-cache-promise

Version:

react-cache-promise

6 lines (4 loc) 303 B
declare function patchQuery<T, A extends unknown[]>(fn: (...args: A) => Promise<T>, getCacheArg: (...args: A) => string): typeof fn; declare function usePromise<T, E = Error>(promise: Promise<T>): T; declare function evict(arg: string): boolean | undefined; export { evict, patchQuery, usePromise };