Added unwatchTree to watch

This commit is contained in:
git
2014-11-18 21:11:20 +01:00
parent 7c194584f3
commit 0b5a8bf5db
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@ 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;
}