@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
13 lines (11 loc) • 523 B
text/typescript
import type { Pail } from "@visulima/pail";
declare class FileCache {
#private;
constructor(cwd: string, cachePath: string | undefined, hashKey: string, logger: Pail);
set isEnabled(value: boolean);
has(name: string, subDirectory?: string): boolean;
get<R>(name: string, subDirectory?: string): R | undefined;
set(name: string, data: object | ArrayBuffer | ArrayBufferView | string | undefined | number | null | boolean, subDirectory?: string): void;
private getFilePath;
}
export = FileCache;