Enumeration of the events emitted by FSWatcher.

Variables

@:value(cast "change")@:enum@:implinlineread onlyChange:FSWatcherEvent<(FSWatcherChangeType, FsPath) ‑> Void> = "change"

Emitted when something changes in a watched directory or file. See more details in Fs.watch.

Listener arguments:

event - The type of fs change
filename - The filename that changed (if relevant/available)

@:value(cast "error")@:enum@:implinlineread onlyError:FSWatcherEvent<Error ‑> Void> = "error"

Emitted when an error occurs.