JailFS.d.ts 627 B

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