UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

8 lines (7 loc) 296 B
export type GetCache<T, R> = (cacheKeys: T, callback: () => R) => R; /** * Singleton cache will only take latest `cacheParams` as key * and return the result for callback matching. */ declare const useSingletonCache: <T extends any[], R>() => GetCache<T, R>; export default useSingletonCache;