diff --git a/watch/watch-tests.ts b/watch/watch-tests.ts index 4888d41e2e..d6be4092dc 100644 --- a/watch/watch-tests.ts +++ b/watch/watch-tests.ts @@ -24,6 +24,7 @@ watch.watchTree(str, (f: any, curr: fs.Stats, prev: fs.Stats) => { watch.watchTree(str, opts, (f: any, curr: fs.Stats, prev: fs.Stats) => { }); +watch.unwatchTree(str); watch.createMonitor(str, (monitor: watch.Monitor) => { }); diff --git a/watch/watch.d.ts b/watch/watch.d.ts index d011b11f76..d80ec2e51d 100644 --- a/watch/watch.d.ts +++ b/watch/watch.d.ts @@ -30,6 +30,7 @@ declare module "watch" { export function watchTree(root: string, callback: (f: any, curr: fs.Stats, prev: fs.Stats) => void): void; export function watchTree(root: string, options: Options, callback: (f: any, curr: fs.Stats, prev: fs.Stats) => void): void; + export function unwatchTree(root: string): void; export function createMonitor(root: string, callback: (monitor: Monitor) => void): void; export function createMonitor(root: string, options: Options, callback: (monitor: Monitor) => void): void; }