fix: types

This commit is contained in:
alexander.akait 2024-10-02 00:29:48 +03:00
parent 636b5c5dba
commit e60cff554a
3 changed files with 4 additions and 4 deletions

View File

@ -4966,7 +4966,7 @@ This prevents using hashes of each other and should be avoided.`);
* a child with different settings and configurations (if desired) applied. It copies all hooks, plugins
* from parent (or top level compiler) and creates a child Compilation
* @param {string} name name of the child compiler
* @param {OutputOptions=} outputOptions // Need to convert config schema to types for this
* @param {Partial<OutputOptions>=} outputOptions // Need to convert config schema to types for this
* @param {Array<WebpackPluginInstance | WebpackPluginFunction>=} plugins webpack plugins that will be applied
* @returns {Compiler} creates a child Compiler instance
*/

View File

@ -1161,7 +1161,7 @@ ${other}`);
* @param {Compilation} compilation the compilation
* @param {string} compilerName the compiler's name
* @param {number} compilerIndex the compiler's index
* @param {OutputOptions=} outputOptions the output options
* @param {Partial<OutputOptions>=} outputOptions the output options
* @param {WebpackPluginInstance[]=} plugins the plugins to apply
* @returns {Compiler} a child compiler
*/

4
types.d.ts vendored
View File

@ -2164,7 +2164,7 @@ declare class Compilation {
*/
createChildCompiler(
name: string,
outputOptions?: OutputNormalized,
outputOptions?: Partial<OutputNormalized>,
plugins?: (
| ((this: Compiler, compiler: Compiler) => void)
| WebpackPluginInstance
@ -2412,7 +2412,7 @@ declare class Compiler {
compilation: Compilation,
compilerName: string,
compilerIndex: number,
outputOptions?: OutputNormalized,
outputOptions?: Partial<OutputNormalized>,
plugins?: WebpackPluginInstance[]
): Compiler;
isChild(): boolean;