fs.d.ts 386 B

12345678910
  1. /// <reference types="node" />
  2. import * as fs from 'fs';
  3. export interface FileSystemAdapter {
  4. lstat: typeof fs.lstat;
  5. stat: typeof fs.stat;
  6. lstatSync: typeof fs.lstatSync;
  7. statSync: typeof fs.statSync;
  8. }
  9. export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
  10. export declare function getFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;