- watch(path, listener?): FSWatcher
Parameters
- path: PathLike
Optional
listener: ((event: string, filename: string) => any)- (event, filename): any
Parameters
- event: string
- filename: string
Returns any
Returns FSWatcher
- watch(path, options, listener?): FSWatcher
Parameters
- path: PathLike
- options: {
persistent?: boolean;
}Optional
persistent?: boolean
Optional
listener: ((event: string, filename: string) => any)- (event, filename): any
Parameters
- event: string
- filename: string
Returns any
Returns FSWatcher