LazyFS.d.ts 525 B

12345678910111213
  1. import { FakeFS } from './FakeFS';
  2. import { ProxiedFS } from './ProxiedFS';
  3. import { Path, PathUtils } from './path';
  4. export type LazyFSFactory<P extends Path> = () => FakeFS<P>;
  5. export declare class LazyFS<P extends Path> extends ProxiedFS<P, P> {
  6. private readonly factory;
  7. private instance;
  8. constructor(factory: LazyFSFactory<P>, pathUtils: PathUtils<P>);
  9. protected get baseFs(): FakeFS<P>;
  10. protected set baseFs(value: FakeFS<P>);
  11. protected mapFromBase(p: P): P;
  12. protected mapToBase(p: P): P;
  13. }