From e60cff554a2a9b4d204f6d21fe9c65f01cb0d5c1 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Wed, 2 Oct 2024 00:29:48 +0300 Subject: [PATCH] fix: types --- lib/Compilation.js | 2 +- lib/Compiler.js | 2 +- types.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Compilation.js b/lib/Compilation.js index 124974b03..da0e14fa9 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -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 // Need to convert config schema to types for this * @param {Array=} plugins webpack plugins that will be applied * @returns {Compiler} creates a child Compiler instance */ diff --git a/lib/Compiler.js b/lib/Compiler.js index f1472544b..cdf158251 100644 --- a/lib/Compiler.js +++ b/lib/Compiler.js @@ -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 the output options * @param {WebpackPluginInstance[]=} plugins the plugins to apply * @returns {Compiler} a child compiler */ diff --git a/types.d.ts b/types.d.ts index 9d40ec2b3..ca4d6f1b5 100644 --- a/types.d.ts +++ b/types.d.ts @@ -2164,7 +2164,7 @@ declare class Compilation { */ createChildCompiler( name: string, - outputOptions?: OutputNormalized, + outputOptions?: Partial, plugins?: ( | ((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance @@ -2412,7 +2412,7 @@ declare class Compiler { compilation: Compilation, compilerName: string, compilerIndex: number, - outputOptions?: OutputNormalized, + outputOptions?: Partial, plugins?: WebpackPluginInstance[] ): Compiler; isChild(): boolean;