@vendure/ngx-translate-extract
Version:
Extract strings from projects using ngx-translate
16 lines (15 loc) • 519 B
TypeScript
import type { CacheInterface } from './cache-interface.js';
export declare class FileCache<RESULT extends object = object> implements CacheInterface<RESULT> {
private cacheFile;
private tapped;
private cached?;
private originalCache?;
private versionHash?;
constructor(cacheFile: string);
get<KEY extends string>(uniqueContents: KEY, generator: () => RESULT): RESULT;
persist(): void;
private sortByKey;
private readCache;
private getVersionHash;
private getCacheFile;
}