AliasFS.d.ts 554 B

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