WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/util/smartGrouping.js
@@ -6,6 +6,7 @@
"use strict";
/**
 * Defines the group options type used by this module.
 * @typedef {object} GroupOptions
 * @property {boolean=} groupChildren
 * @property {boolean=} force
@@ -13,6 +14,7 @@
 */
/**
 * Defines the group config type used by this module.
 * @template I
 * @template G
 * @typedef {object} GroupConfig
@@ -22,17 +24,20 @@
 */
/**
 * Defines the group type used by this module.
 * @template I
 * @template G
 * @typedef {{ config: GroupConfig<I, G>, name: string, alreadyGrouped: boolean, items: Items<I, G> | undefined }} Group
 */
/**
 * Defines the groups type used by this module.
 * @template I, G
 * @typedef {Set<Group<I, G>>} Groups
 */
/**
 * Defines the item with groups type used by this module.
 * @template I
 * @template G
 * @typedef {object} ItemWithGroups
@@ -41,11 +46,13 @@
 */
/**
 * Defines the items type used by this module.
 * @template T, G
 * @typedef {Set<ItemWithGroups<T, G>>} Items
 */
/**
 * Returns grouped items.
 * @template I
 * @template G
 * @template R
@@ -90,6 +97,7 @@
   }
   /**
    * Returns groups items.
    * @param {Items<I, G>} itemsWithGroups input items with groups
    * @returns {(I | G)[]} groups items
    */