useGlobalCache.d.ts 288 B

123
  1. import type { KeyType } from '../Cache';
  2. import type { ShallowRef, Ref } from 'vue';
  3. export default function useClientCache<CacheType>(prefix: string, keyPath: Ref<KeyType[]>, cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void): ShallowRef<CacheType>;