minishouyin/node_modules/antd/lib/watermark/useSingletonCache.d.ts

7 lines
268 B
TypeScript
Raw Normal View History

2025-11-12 11:35:57 +08:00
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.
*/
export default function useSingletonCache<T extends any[], R>(): GetCache<T, R>;