MCPcopy Index your code
hub / github.com/nodejs/node / generateWatchFileOptions

Function generateWatchFileOptions

test/fixtures/snapshot/typescript.js:6831–6839  ·  view source on GitHub ↗
(watchFile, fallbackPolling, options)

Source from the content-addressed store, hash-verified

6829 }
6830 }
6831 function generateWatchFileOptions(watchFile, fallbackPolling, options) {
6832 var defaultFallbackPolling = options === null || options === void 0 ? void 0 : options.fallbackPolling;
6833 return {
6834 watchFile: watchFile,
6835 fallbackPolling: defaultFallbackPolling === undefined ?
6836 fallbackPolling :
6837 defaultFallbackPolling
6838 };
6839 }
6840 function watchDirectory(directoryName, callback, recursive, options) {
6841 if (fsSupportsRecursiveFsWatch) {
6842 return fsWatch(directoryName, 1 /* FileSystemEntryKind.Directory */, createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), recursive, PollingInterval.Medium, ts.getFallbackOptions(options));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected