@wezom/fs-walker
Version:
FS helper tools
17 lines (16 loc) • 432 B
TypeScript
export declare class FileSource {
protected source: string;
constructor(source: string);
/** @throws {Error} */
readAsText(): string;
/** @throws {Error} */
readAsJson(): unknown;
/** @throws {Error} */
write(content: string): void;
/** @throws {Error} */
remove(): void;
exists(): boolean;
getAbsolutePath(): string;
makeSourceDirIfNotExists(): void;
getDirPath(): string;
}