({ dir, on_change, filter, absolute, chokidar, ignored, }: WatchDirOptions): WatchNodeFs Watch for changes on the filesystem using chokidar.
__0
type WatchDirOptions
returns
WatchNodeFs 6 declarations
({ dir, on_change, filter, absolute, chokidar, ignored, }: WatchDirOptions): WatchNodeFs Watch for changes on the filesystem using chokidar.
__0WatchNodeFs WatchDirOptions dirstringon_changefilterPathFilter | null | undefinedchokidarChokidarOptionsabsoluteWhen false, returns the path relative to dir.
booleanignoredPattern to ignore files, merged into chokidar.ignored if also provided.
- undefined (default) ignores files matching .tmp. pattern
- null sets no default ignore pattern
- or some custom pattern
Matcher | nullWatcherChange typepathstringis_directorybooleanWatcherChangeCallback WatcherChangeType WatchNodeFs init() => Promise<void>close() => Promise<void>