WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/stats/StatsPrinter.js
@@ -21,12 +21,14 @@
/** @typedef {import("./DefaultStatsFactoryPlugin").StatsProfile} StatsProfile */
/**
 * Defines the printed element type used by this module.
 * @typedef {object} PrintedElement
 * @property {string} element
 * @property {string | undefined} content
 */
/**
 * Defines the known stats printer context type used by this module.
 * @typedef {object} KnownStatsPrinterContext
 * @property {string=} type
 * @property {StatsCompilation=} compilation
@@ -47,6 +49,7 @@
/** @typedef {(value: string | number) => string} ColorFunction */
/**
 * Defines the known stats printer color functions type used by this module.
 * @typedef {object} KnownStatsPrinterColorFunctions
 * @property {ColorFunction=} bold
 * @property {ColorFunction=} yellow
@@ -57,6 +60,7 @@
 */
/**
 * Defines the known stats printer formatters type used by this module.
 * @typedef {object} KnownStatsPrinterFormatters
 * @property {(file: string, oversize?: boolean) => string=} formatFilename
 * @property {(id: string | number) => string=} formatModuleId
@@ -74,6 +78,7 @@
/** @typedef {EXPECTED_ANY} PrintObject */
/**
 * Represents the stats printer runtime component.
 * @typedef {object} StatsPrintHooks
 * @property {HookMap<SyncBailHook<[string[], StatsPrinterContext], void>>} sortElements
 * @property {HookMap<SyncBailHook<[PrintedElement[], StatsPrinterContext], string | undefined | void>>} printElements
@@ -176,6 +181,7 @@
   }
   /**
    * Returns printed result.
    * @param {string} type The type
    * @param {PrintObject} object Object to print
    * @param {StatsPrinterContext=} baseContext The base context
@@ -195,6 +201,7 @@
   }
   /**
    * Returns printed result.
    * @private
    * @param {string} type type
    * @param {PrintObject} object object