From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送

---
 node_modules/webpack/lib/MultiWatching.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/node_modules/webpack/lib/MultiWatching.js b/node_modules/webpack/lib/MultiWatching.js
index b858dd4..381443c 100644
--- a/node_modules/webpack/lib/MultiWatching.js
+++ b/node_modules/webpack/lib/MultiWatching.js
@@ -13,6 +13,7 @@
 
 class MultiWatching {
 	/**
+	 * Creates an instance of MultiWatching.
 	 * @param {Watching[]} watchings child compilers' watchers
 	 * @param {MultiCompiler} compiler the compiler
 	 */
@@ -22,6 +23,7 @@
 	}
 
 	/**
+	 * Processes the provided error callback.
 	 * @param {ErrorCallback=} callback signals when the build has completed again
 	 * @returns {void}
 	 */
@@ -31,7 +33,7 @@
 				this.watchings,
 				(watching, callback) => watching.invalidate(callback),
 				(err) => {
-					callback(err);
+					callback(/** @type {Error | null} */ (err));
 				}
 			);
 		} else {
@@ -54,6 +56,7 @@
 	}
 
 	/**
+	 * Processes the provided error callback.
 	 * @param {ErrorCallback} callback signals when the watcher is closed
 	 * @returns {void}
 	 */
@@ -67,7 +70,7 @@
 				this.compiler.hooks.watchClose.call();
 				if (typeof callback === "function") {
 					this.compiler.running = false;
-					callback(err);
+					callback(/** @type {Error | null} */ (err));
 				}
 			}
 		);

--
Gitblit v1.9.3