- watchFs(repo, path, options, onResult, onError): Promise<{ 
 abort: (() => void);
 result: Promise<null | string>;
 }>
- Parameters- repo: string
- path: string | string[]
- options: WatchOptions & { 
 mdContent?: boolean;
 mdFilesOnly?: boolean;
 }
- onResult: ((result: { 
 content?: null | string;
 eventName:
 | "add"
 | "change"
 | "addDir"
 | "unlink"
 | "unlinkDir";
 path: string;
 stats?: Stats;
 } | {
 eventName: "ready";
 }) => void)- (result): void
- Parameters- result: { 
 content?: null | string;
 eventName:
 | "add"
 | "change"
 | "addDir"
 | "unlink"
 | "unlinkDir";
 path: string;
 stats?: Stats;
 } | {
 eventName: "ready";
 }
 
- Returns void
 
 
- onError: ((error: Error) => void)- (error): void
- Returns void
 
 
 
- Returns Promise<{ 
 abort: (() => void);
 result: Promise<null | string>;
 }>
Watch file or dir.