UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

7 lines (6 loc) 481 B
import type { KeyType } from '../Cache'; import type { ShallowRef, Ref } from 'vue'; export type ExtractStyle<CacheValue> = (cache: CacheValue, effectStyles: Record<string, boolean>, options?: { plain?: boolean; }) => [order: number, styleId: string, style: string] | null; export default function useClientCache<CacheType>(prefix: string, keyPath: Ref<KeyType[]>, cacheFn: () => CacheType, onCacheRemove?: (cache: CacheType, fromHMR: boolean) => void): ShallowRef<CacheType>;