WXL
4 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/serialization/SerializerMiddleware.js
@@ -13,6 +13,7 @@
/** @typedef {Record<string, EXPECTED_ANY>} LazyOptions */
/**
 * Defines the lazy function type used by this module.
 * @template InputValue
 * @template OutputValue
 * @template {LazyTarget} InternalLazyTarget
@@ -21,6 +22,7 @@
 */
/**
 * Represents SerializerMiddleware.
 * @template DeserializedType
 * @template SerializedType
 * @template Context
@@ -28,6 +30,7 @@
class SerializerMiddleware {
   /* istanbul ignore next */
   /**
    * Serializes this instance into the provided serializer context.
    * @abstract
    * @param {DeserializedType} data data
    * @param {Context} context context object
@@ -41,6 +44,7 @@
   /* istanbul ignore next */
   /**
    * Restores this instance from the provided deserializer context.
    * @abstract
    * @param {SerializedType} data data
    * @param {Context} context context object
@@ -53,6 +57,7 @@
   }
   /**
    * Creates a lazy from the provided value.
    * @template TLazyInputValue
    * @template TLazyOutputValue
    * @template {LazyTarget} TLazyTarget
@@ -80,6 +85,7 @@
   }
   /**
    * Checks whether this serializer middleware is lazy.
    * @template {LazyTarget} TLazyTarget
    * @param {EXPECTED_ANY} fn lazy function
    * @param {TLazyTarget=} target target middleware
@@ -92,6 +98,7 @@
   }
   /**
    * Returns options.
    * @template TLazyInputValue
    * @template TLazyOutputValue
    * @template {LazyTarget} TLazyTarget
@@ -105,6 +112,7 @@
   }
   /**
    * Gets lazy serialized value.
    * @template TLazyInputValue
    * @template TLazyOutputValue
    * @template {LazyTarget} TLazyTarget
@@ -118,6 +126,7 @@
   }
   /**
    * Sets lazy serialized value.
    * @template TLazyInputValue
    * @template TLazyOutputValue
    * @template {LazyTarget} TLazyTarget
@@ -131,6 +140,7 @@
   }
   /**
    * Returns new lazy.
    * @template TLazyInputValue DeserializedValue
    * @template TLazyOutputValue SerializedValue
    * @template {LazyTarget} TLazyTarget
@@ -165,6 +175,7 @@
   }
   /**
    * Returns new lazy.
    * @template TLazyInputValue SerializedValue
    * @template TLazyOutputValue DeserializedValue
    * @template {LazyTarget} TLazyTarget
@@ -198,6 +209,7 @@
   }
   /**
    * Returns new lazy.
    * @template TLazyInputValue
    * @template TLazyOutputValue
    * @template {LazyTarget} TLazyTarget