From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/webpack/lib/util/makeSerializable.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/util/makeSerializable.js b/node_modules/webpack/lib/util/makeSerializable.js
index c5f08c1..5f4d5a9 100644
--- a/node_modules/webpack/lib/util/makeSerializable.js
+++ b/node_modules/webpack/lib/util/makeSerializable.js
@@ -12,15 +12,18 @@
/** @typedef {{ serialize: (context: ObjectSerializerContext) => void, deserialize: (context: ObjectDeserializerContext) => void }} SerializableClass */
/**
+ * Defines the serializable class constructor type used by this module.
* @template {SerializableClass} T
* @typedef {(new (...params: EXPECTED_ANY[]) => T) & { deserialize?: (context: ObjectDeserializerContext) => T }} SerializableClassConstructor
*/
/**
+ * Represents ClassSerializer.
* @template {SerializableClass} T
*/
class ClassSerializer {
/**
+ * Creates an instance of ClassSerializer.
* @param {SerializableClassConstructor<T>} Constructor constructor
*/
constructor(Constructor) {
@@ -28,6 +31,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {T} obj obj
* @param {ObjectSerializerContext} context context
*/
@@ -36,6 +40,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
* @returns {T} obj
*/
@@ -50,6 +55,7 @@
}
/**
+ * Processes the provided constructor.
* @template {Constructor} T
* @param {T} Constructor the constructor
* @param {string} request the request which will be required when deserializing
--
Gitblit v1.9.3