( options: WatchOptions | undefined, )
| 79 | } |
| 80 | |
| 81 | export function convertToWatcherOptions( |
| 82 | options: WatchOptions | undefined, |
| 83 | ): WatcherOptions['watcher'] { |
| 84 | if (!options) return |
| 85 | |
| 86 | return { |
| 87 | usePolling: options.usePolling, |
| 88 | pollInterval: options.interval, |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | class NoopWatcher extends EventEmitter implements FSWatcher { |
| 93 | constructor(public options: WatchOptions) { |