mirror of https://github.com/webpack/webpack.git
fix: types
This commit is contained in:
parent
636b5c5dba
commit
e60cff554a
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue