watchFile.d.ts 517 B

123456
  1. import { FakeFS, WatchFileOptions, WatchFileCallback } from '../FakeFS';
  2. import { Path } from '../path';
  3. import { CustomStatWatcher } from './watchFile/CustomStatWatcher';
  4. export declare function watchFile<P extends Path>(fakeFs: FakeFS<P>, path: P, a: WatchFileOptions | WatchFileCallback, b?: WatchFileCallback): CustomStatWatcher<P>;
  5. export declare function unwatchFile<P extends Path>(fakeFs: FakeFS<P>, path: P, cb?: WatchFileCallback): void;
  6. export declare function unwatchAllFiles(fakeFs: FakeFS<Path>): void;