- watch(filename, options?): AsyncIterable<promises.FileChangeInfo<string>>
Parameters
- filename: PathLike
Optional
options: BufferEncoding | WatchOptions
Returns AsyncIterable<promises.FileChangeInfo<string>>
- watch(filename, options): AsyncIterable<promises.FileChangeInfo<Buffer>>
Parameters
- filename: PathLike
- options: BufferEncodingOption | WatchOptions
Returns AsyncIterable<promises.FileChangeInfo<Buffer>>
- watch(filename, options?): AsyncIterable<promises.FileChangeInfo<string>> | AsyncIterable<promises.FileChangeInfo<Buffer>>
Parameters
- filename: PathLike
Optional
options: string | WatchOptions
Returns AsyncIterable<promises.FileChangeInfo<string>> | AsyncIterable<promises.FileChangeInfo<Buffer>>