mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Merge pull request #3173 from dschaadt/master
Added unwatchTree to watch
This commit is contained in:
@@ -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) => {
|
||||
|
||||
});
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user