Closed Handfish closed 1 year ago
Decided to give this a go in order to test an idea I had https://github.com/Handfish/turbowatch/commit/0255bc672fd69d677bda23a8483691200bf582a0
Presently the add
and unwatch
apis in Chokidar aren't working the way I'd have wished.
It was a fun modification - learned about tagged template literals and interface merging along the way. Closing as I've explored this change.
I would like to access the Watcher object from the onChange handler in the watch configuration input. This way, a user can create public methods on their FileWatchingBackend to use in onChange.
Desired Behavior
Not sure how to reference the watcher with
WatcherConstructable
being a constructor. Maybe pass a reference in ChangeEventMotivation
I would like to conditionally add and remove paths from my chokidar watch.