MCPcopy Index your code
hub / github.com/darkreader/darkreader / addWatcher

Method addWatcher

tasks/task.js:20–24  ·  view source on GitHub ↗

* @param {string[] | (() => string[])} files * @param {(changedFiles: string[], watcher: import('chokidar').FSWatcher, platforms: object) => void | Promise } onChange

(files, onChange)

Source from the content-addressed store, hash-verified

18 * @param {(changedFiles: string[], watcher: import('chokidar').FSWatcher, platforms: object) => void | Promise<void>} onChange
19 */
20 addWatcher(files, onChange) {
21 this._watchFiles = files;
22 this._onChange = onChange;
23 return this;
24 }
25
26 /**
27 * @param {() => void | Promise<void>} fn

Callers 6

createBundleJSTaskFunction · 0.80
createCopyTaskFunction · 0.80
createBundleCSSTaskFunction · 0.80
createBundleLocalesTaskFunction · 0.80
bundle-manifest.jsFile · 0.80
bundle-api.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected