3 lines
277 B
TypeScript
3 lines
277 B
TypeScript
import type { KeyType } from '../Cache';
|
|
export default function useGlobalCache<CacheType>(prefix: string, keyPath: KeyType[], cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void, onCacheEffect?: (cachedValue: CacheType) => void): CacheType;
|