WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/index.js
@@ -85,6 +85,7 @@
/** @typedef {import("./util/fs").OutputFileSystem} OutputFileSystem */
/**
 * Returns function.
 * @template {EXPECTED_FUNCTION} T
 * @param {() => T} factory factory function
 * @returns {T} function
@@ -93,6 +94,7 @@
   const fac = memoize(factory);
   const f = /** @type {unknown} */ (
      /**
       * Handles the callback logic for this hook.
       * @param {...EXPECTED_ANY} args args
       * @returns {T} result
       */
@@ -102,6 +104,7 @@
};
/**
 * Merges the provided values into a single result.
 * @template A
 * @template B
 * @param {A} obj input a
@@ -142,6 +145,7 @@
      return require("./webpack");
   },
   /**
    * Returns validate fn.
    * @returns {(configuration: Configuration | MultiConfiguration) => void} validate fn
    */
   get validate() {
@@ -151,6 +155,7 @@
      const getRealValidate = memoize(
         /**
          * Handles the callback logic for this hook.
          * @returns {(configuration: Configuration | MultiConfiguration) => void} validate fn
          */
         () => {