CwdFS.d.ts 584 B

123456789101112131415
  1. import { FakeFS } from './FakeFS';
  2. import { ProxiedFS } from './ProxiedFS';
  3. import { PortablePath } from './path';
  4. export type CwdFSOptions = {
  5. baseFs?: FakeFS<PortablePath>;
  6. };
  7. export declare class CwdFS extends ProxiedFS<PortablePath, PortablePath> {
  8. private readonly target;
  9. protected readonly baseFs: FakeFS<PortablePath>;
  10. constructor(target: PortablePath, { baseFs }?: CwdFSOptions);
  11. getRealPath(): PortablePath;
  12. resolve(p: PortablePath): PortablePath;
  13. mapFromBase(path: PortablePath): PortablePath;
  14. mapToBase(path: PortablePath): PortablePath;
  15. }