From 0b5a8bf5dbb07441a708292072da83c1c237a268 Mon Sep 17 00:00:00 2001 From: git Date: Tue, 18 Nov 2014 21:11:20 +0100 Subject: [PATCH 1/3] Added unwatchTree to watch --- watch/watch-tests.ts | 3 +++ watch/watch.d.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/watch/watch-tests.ts b/watch/watch-tests.ts index 4888d41e2e..4321632f40 100644 --- a/watch/watch-tests.ts +++ b/watch/watch-tests.ts @@ -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) => { 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; } From 3d55a19d83c4a646895ef73185c5287fe2803c6b Mon Sep 17 00:00:00 2001 From: git Date: Thu, 20 Nov 2014 22:02:42 +0100 Subject: [PATCH 2/3] Corrected typo --- watch/watch-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/watch-tests.ts b/watch/watch-tests.ts index 4321632f40..974176a965 100644 --- a/watch/watch-tests.ts +++ b/watch/watch-tests.ts @@ -24,7 +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.unwatchTree(str => { }); watch.createMonitor(str, (monitor: watch.Monitor) => { From 554b4d005a7684171df16be71efb8b1225522482 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 20 Nov 2014 22:13:48 +0100 Subject: [PATCH 3/3] Corrected more errors --- watch/watch-tests.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/watch/watch-tests.ts b/watch/watch-tests.ts index 974176a965..d6be4092dc 100644 --- a/watch/watch-tests.ts +++ b/watch/watch-tests.ts @@ -24,9 +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.unwatchTree(str); watch.createMonitor(str, (monitor: watch.Monitor) => { });