amis-rpc-design/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.d.ts
2023-10-07 19:42:30 +08:00

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;