OptionalencodingOptionalmaxOptionaloverflowEither 'ignore' or 'throw' when there are more events to be queued than maxQueue allows. 'ignore' means overflow events are dropped and a warning is emitted, while 'throw' means to throw an exception. Default: 'ignore'.
OptionalpersistentIndicates whether the process should continue to run as long as files are being watched. Default: true.
OptionalrecursiveIndicates whether all subdirectories should be watched, or only the current directory. This applies when a directory is specified, and only on supported platforms (See caveats). Default: false.
OptionalsignalAllows closing the watcher with an AbortSignal.
Specifies the number of events to queue between iterations of the AsyncIterator. Default: 2048.