UNPKG

@wezom/fs-walker

Version:
17 lines (16 loc) 432 B
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; }