xfs.d.ts 625 B

123456789101112131415161718
  1. import { NodeFS } from './NodeFS';
  2. import { PortablePath } from './path';
  3. export type XFS = NodeFS & {
  4. detachTemp(p: PortablePath): void;
  5. mktempSync(): PortablePath;
  6. mktempSync<T>(cb: (p: PortablePath) => T): T;
  7. mktempPromise(): Promise<PortablePath>;
  8. mktempPromise<T>(cb: (p: PortablePath) => Promise<T>): Promise<T>;
  9. /**
  10. * Tries to remove all temp folders created by mktempSync and mktempPromise
  11. */
  12. rmtempPromise(): Promise<void>;
  13. /**
  14. * Tries to remove all temp folders created by mktempSync and mktempPromise
  15. */
  16. rmtempSync(): void;
  17. };
  18. export declare const xfs: XFS;