diff --git a/lib/node/NodeWatchFileSystem.js b/lib/node/NodeWatchFileSystem.js index 66526437874..1e537ef36ba 100644 --- a/lib/node/NodeWatchFileSystem.js +++ b/lib/node/NodeWatchFileSystem.js @@ -28,7 +28,7 @@ class NodeWatchFileSystem { * @param {Iterable} missing watched exitance entries * @param {number} startTime timestamp of start time * @param {WatchOptions} options options object - * @param {function(Error=, Map, Map, Set, Set): void} callback aggregated callback + * @param {function(Error=, Map, Set, Set): void} callback aggregated callback * @param {function(string, number): void} callbackUndelayed callback when the first change was detected * @returns {Watcher} a watcher */ diff --git a/lib/util/fs.js b/lib/util/fs.js index 0efca048fda..5ae3a0d181c 100644 --- a/lib/util/fs.js +++ b/lib/util/fs.js @@ -78,7 +78,7 @@ const path = require("path"); * @param {Iterable} missing watched exitance entries * @param {number} startTime timestamp of start time * @param {WatchOptions} options options object - * @param {function(Error=, Map, Map, Set, Set): void} callback aggregated callback + * @param {function(Error=, Map, Set, Set): void} callback aggregated callback * @param {function(string, number): void} callbackUndelayed callback when the first change was detected * @returns {Watcher} a watcher */ diff --git a/test/__snapshots__/StatsTestCases.basictest.js.snap b/test/__snapshots__/StatsTestCases.basictest.js.snap index 6fc740bfc6a..0be38e3b85d 100644 --- a/test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/test/__snapshots__/StatsTestCases.basictest.js.snap @@ -1292,7 +1292,7 @@ asset main.js 84 bytes [emitted] (name: ma 0 entries tested File info in cache: 1 timestamps 1 hashes 1 timestamp hash combinations File timestamp hash combination snapshot optimization: 0% (0/1) entries shared via 0 shared snapshots (0 times referenced) - Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations + Directory info in cache: 1 timestamps 0 hashes 0 timestamp hash combinations Managed items info in cache: 0 items webpack x.x.x compiled successfully in X ms" @@ -2081,7 +2081,7 @@ LOG from webpack.FileSystemInfo 0 entries tested File info in cache: 6 timestamps 6 hashes 6 timestamp hash combinations File timestamp hash combination snapshot optimization: 0% (0/6) entries shared via 0 shared snapshots (0 times referenced) - Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations + Directory info in cache: 6 timestamps 0 hashes 0 timestamp hash combinations Managed items info in cache: 0 items 1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (c7a4e3bf1797f14ec5d7)" @@ -2457,7 +2457,7 @@ LOG from webpack.FileSystemInfo 0 entries tested File info in cache: 6 timestamps 6 hashes 6 timestamp hash combinations File timestamp hash combination snapshot optimization: 0% (0/6) entries shared via 0 shared snapshots (0 times referenced) - Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations + Directory info in cache: 6 timestamps 0 hashes 0 timestamp hash combinations Managed items info in cache: 0 items 1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (c7a4e3bf1797f14ec5d7)" diff --git a/types.d.ts b/types.d.ts index 218e4727a36..bc183be1e7a 100644 --- a/types.d.ts +++ b/types.d.ts @@ -11655,9 +11655,8 @@ declare interface WatchFileSystem { callback: ( arg0: undefined | Error, arg1: Map, - arg2: Map, - arg3: Set, - arg4: Set + arg2: Set, + arg3: Set ) => void, callbackUndelayed: (arg0: string, arg1: number) => void ) => Watcher;