Merge pull request #3173 from dschaadt/master

Added unwatchTree to watch
This commit is contained in:
Masahiro Wakame
2014-11-29 14:03:25 +09:00
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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) => {
});
+1
View File
@@ -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;
}