From 0b5a8bf5dbb07441a708292072da83c1c237a268 Mon Sep 17 00:00:00 2001 From: git Date: Tue, 18 Nov 2014 21:11:20 +0100 Subject: [PATCH] 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 4888d41e2..4321632f4 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 d011b11f7..d80ec2e51 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; }