UNPKG

vite-esbuild-typescript-checker

Version:

* Speeds up [TypeScript](https://github.com/Microsoft/TypeScript) type checking * Supports [Vue Single File Component](https://vuejs.org/v2/guide/single-file-components.html) * Displays nice error messages with the [code frame](https://babeljs.io/docs/en/

21 lines (20 loc) 651 B
import type { Dirent, Stats } from 'fs'; /** * Interface to abstract file system implementation details. */ export interface FileSystem { // read exists(path: string): boolean; readFile(path: string, encoding?: string): string | undefined; readDir(path: string): Dirent[]; readStats(path: string): Stats | undefined; realPath(path: string): string; normalizePath(path: string): string; // write writeFile(path: string, data: string): void; deleteFile(path: string): void; createDir(path: string): void; updateTimes(path: string, atime: Date, mtime: Date): void; // cache clearCache(): void; }