@fimbul/wotan
Version:
Pluggable TypeScript and JavaScript linter
15 lines (14 loc) • 573 B
TypeScript
import { FileSystem, Stats, MessageHandler, Dirent } from '@fimbul/ymir';
export declare class NodeFileSystem implements FileSystem {
private logger;
static normalizePath(path: string): string;
constructor(logger: MessageHandler);
normalizePath(path: string): string;
readFile(file: string): string;
readDirectory(dir: string): Array<string | Dirent>;
stat(path: string): Stats;
realpath(path: string): string;
writeFile(file: string, content: string): void;
deleteFile(path: string): void;
createDirectory(dir: string): void;
}