copyPromise.d.ts 612 B

123456789101112131415
  1. import { FakeFS } from '../FakeFS';
  2. import { Path } from '../path';
  3. export declare enum LinkStrategy {
  4. Allow = "allow",
  5. ReadOnly = "readOnly"
  6. }
  7. export type CopyOptions = {
  8. linkStrategy: LinkStrategy | null;
  9. stableTime: boolean;
  10. stableSort: boolean;
  11. overwrite: boolean;
  12. };
  13. export type Operations = Array<() => Promise<void>>;
  14. export type LUTimes<P extends Path> = Array<[P, Date | number, Date | number]>;
  15. export declare function copyPromise<P1 extends Path, P2 extends Path>(destinationFs: FakeFS<P1>, destination: P1, sourceFs: FakeFS<P2>, source: P2, opts: CopyOptions): Promise<void>;