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/MultiStats.js |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/node_modules/webpack/lib/MultiStats.js b/node_modules/webpack/lib/MultiStats.js
index 62504ab..704e1f7 100644
--- a/node_modules/webpack/lib/MultiStats.js
+++ b/node_modules/webpack/lib/MultiStats.js
@@ -8,6 +8,7 @@
 const identifierUtils = require("./util/identifier");
 
 /** @typedef {import("../declarations/WebpackOptions").StatsOptions} StatsOptions */
+/** @typedef {import("../declarations/WebpackOptions").StatsValue} StatsValue */
 /** @typedef {import("./Compilation").CreateStatsOptionsContext} CreateStatsOptionsContext */
 /** @typedef {import("./Compilation").NormalizedStatsOptions} NormalizedStatsOptions */
 /** @typedef {import("./Stats")} Stats */
@@ -16,6 +17,7 @@
 /** @typedef {import("./stats/DefaultStatsFactoryPlugin").StatsError} StatsError */
 
 /**
+ * Returns indent.
  * @param {string} str string
  * @param {string} prefix pref
  * @returns {string} indent
@@ -25,12 +27,12 @@
 	return prefix + rem;
 };
 
-/** @typedef {undefined | string | boolean | StatsOptions} ChildrenStatsOptions */
-/** @typedef {Omit<StatsOptions, "children"> & { children?: ChildrenStatsOptions | ChildrenStatsOptions[] }} MultiStatsOptions */
+/** @typedef {StatsOptions} MultiStatsOptions */
 /** @typedef {{ version: boolean, hash: boolean, errorsCount: boolean, warningsCount: boolean, errors: boolean, warnings: boolean, children: NormalizedStatsOptions[] }} ChildOptions */
 
 class MultiStats {
 	/**
+	 * Creates an instance of MultiStats.
 	 * @param {Stats[]} stats the child stats
 	 */
 	constructor(stats) {
@@ -42,6 +44,7 @@
 	}
 
 	/**
+	 * Checks whether this multi stats has errors.
 	 * @returns {boolean} true if a child compilation encountered an error
 	 */
 	hasErrors() {
@@ -49,6 +52,7 @@
 	}
 
 	/**
+	 * Checks whether this multi stats has warnings.
 	 * @returns {boolean} true if a child compilation had a warning
 	 */
 	hasWarnings() {
@@ -56,7 +60,8 @@
 	}
 
 	/**
-	 * @param {undefined | string | boolean | MultiStatsOptions} options stats options
+	 * Create child options.
+	 * @param {undefined | StatsValue} options stats options
 	 * @param {CreateStatsOptionsContext} context context
 	 * @returns {ChildOptions} context context
 	 */
@@ -109,7 +114,8 @@
 	}
 
 	/**
-	 * @param {(string | boolean | MultiStatsOptions)=} options stats options
+	 * Returns json output.
+	 * @param {StatsValue=} options stats options
 	 * @returns {StatsCompilation} json output
 	 */
 	toJson(options) {
@@ -138,6 +144,7 @@
 			obj.hash = obj.children.map((j) => j.hash).join("");
 		}
 		/**
+		 * Returns result.
 		 * @param {StatsCompilation} j stats error
 		 * @param {StatsError} obj Stats error
 		 * @returns {StatsError} result
@@ -184,7 +191,8 @@
 	}
 
 	/**
-	 * @param {(string | boolean | MultiStatsOptions)=} options stats options
+	 * Returns a string representation.
+	 * @param {StatsValue=} options stats options
 	 * @returns {string} string output
 	 */
 	toString(options) {

--
Gitblit v1.9.3