Function watch

  • Parameters

    • filename: PathLike
    • Optionaloptions: BufferEncoding | WatchOptions

    Returns AsyncIterable<promises.FileChangeInfo<string>>

  • Parameters

    • filename: PathLike
    • options: BufferEncodingOption | WatchOptions

    Returns AsyncIterable<promises.FileChangeInfo<Buffer>>

  • Parameters

    • filename: PathLike
    • Optionaloptions: string | WatchOptions

    Returns AsyncIterable<promises.FileChangeInfo<string>> | AsyncIterable<promises.FileChangeInfo<Buffer>>