UNPKG

387 BTypeScriptView Raw
1export default class Watcher {
2 private onReady;
3 private onTrigger;
4 private onCollectFiles;
5 private onError;
6 private watcher;
7 constructor(options: {
8 onReady: () => void;
9 onTrigger: (arg: any) => void;
10 onCollectFiles: () => Promise<string[]>;
11 onError: (error: Error) => void;
12 });
13 watch(): Promise<void>;
14 close(): void;
15}