@stylable/core
Version:
CSS for Components
10 lines • 347 B
TypeScript
export interface TimedCacheOptions {
timeout: number;
useTimer: boolean;
createKey: (args: string[]) => string;
}
export declare function timedCache<T extends (...args: string[]) => string>(fn: T, { timeout, useTimer, createKey }: TimedCacheOptions): {
get: T;
cache: Map<any, any>;
};
//# sourceMappingURL=timed-cache.d.ts.map