poku
Version:
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
18 lines (17 loc) • 530 B
TypeScript
import type { WatchCallback } from '../@types/watch.js';
export declare class Watcher {
private rootDir;
private files;
private fileWatchers;
private dirWatchers;
private callback;
constructor(rootDir: string, callback: WatchCallback);
private watchFile;
private unwatchFiles;
private watchFiles;
private watchDirectory;
start(): Promise<void>;
stop(): void;
private unwatchDirectories;
}
export declare const watch: (path: string, callback: WatchCallback) => Promise<Watcher>;