Enumeration of the events emitted by FSWatcher.

Static variables

@:value(cast "change")@:impl@:enumstaticinlineread 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")@:impl@:enumstaticinlineread onlyError:FSWatcherEvent<Error ‑> Void> = "error"

Emitted when an error occurs.