WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/container/options.js
@@ -6,16 +6,19 @@
"use strict";
/**
 * Defines the item type used by this module.
 * @template T
 * @typedef {Record<string, string | string[] | T>} Item
 */
/**
 * Defines the container options format type used by this module.
 * @template T
 * @typedef {(string | Item<T>)[] | Item<T>} ContainerOptionsFormat
 */
/**
 * Processes the provided t.
 * @template T
 * @template N
 * @param {ContainerOptionsFormat<T>} options options passed by the user
@@ -26,6 +29,7 @@
 */
const process = (options, normalizeSimple, normalizeOptions, fn) => {
   /**
    * Processes the provided item.
    * @param {(string | Item<T>)[]} items items
    */
   const array = (items) => {
@@ -40,6 +44,7 @@
      }
   };
   /**
    * Processes the provided obj.
    * @param {Item<T>} obj an object
    */
   const object = (obj) => {
@@ -63,6 +68,7 @@
};
/**
 * Returns parsed options.
 * @template T
 * @template R
 * @param {ContainerOptionsFormat<T>} options options passed by the user
@@ -80,6 +86,7 @@
};
/**
 * Returns options to spread or pass.
 * @template T
 * @param {string} scope scope name
 * @param {ContainerOptionsFormat<T>} options options passed by the user