fs.d.ts 918 B

1234567891011121314151617
  1. import fs, { Dirent } from 'fs';
  2. export { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync, unlinkSync, } from 'fs';
  3. export declare const readdirSync: (path: fs.PathLike) => Dirent[];
  4. export declare const promises: {
  5. chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>;
  6. mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & {
  7. recursive?: boolean | null;
  8. }) | undefined | null) => Promise<string | undefined>;
  9. readdir: (path: fs.PathLike) => Promise<Dirent[]>;
  10. rename: (oldPath: fs.PathLike, newPath: fs.PathLike) => Promise<void>;
  11. rm: (path: fs.PathLike, options: fs.RmOptions) => Promise<void>;
  12. rmdir: (path: fs.PathLike) => Promise<void>;
  13. stat: (path: fs.PathLike) => Promise<fs.Stats>;
  14. lstat: (path: fs.PathLike) => Promise<fs.Stats>;
  15. unlink: (path: fs.PathLike) => Promise<void>;
  16. };
  17. //# sourceMappingURL=fs.d.ts.map