mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-04 16:04:45 +08:00
Added unwatchTree to watch
This commit is contained in:
@@ -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) => {
|
||||
|
||||
|
||||
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