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
|
* 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
|
* from parent (or top level compiler) and creates a child Compilation
|
||||||
* @param {string} name name of the child compiler
|
* @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
|
* @param {Array<WebpackPluginInstance | WebpackPluginFunction>=} plugins webpack plugins that will be applied
|
||||||
* @returns {Compiler} creates a child Compiler instance
|
* @returns {Compiler} creates a child Compiler instance
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1161,7 +1161,7 @@ ${other}`);
|
||||||
* @param {Compilation} compilation the compilation
|
* @param {Compilation} compilation the compilation
|
||||||
* @param {string} compilerName the compiler's name
|
* @param {string} compilerName the compiler's name
|
||||||
* @param {number} compilerIndex the compiler's index
|
* @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
|
* @param {WebpackPluginInstance[]=} plugins the plugins to apply
|
||||||
* @returns {Compiler} a child compiler
|
* @returns {Compiler} a child compiler
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2164,7 +2164,7 @@ declare class Compilation {
|
||||||
*/
|
*/
|
||||||
createChildCompiler(
|
createChildCompiler(
|
||||||
name: string,
|
name: string,
|
||||||
outputOptions?: OutputNormalized,
|
outputOptions?: Partial<OutputNormalized>,
|
||||||
plugins?: (
|
plugins?: (
|
||||||
| ((this: Compiler, compiler: Compiler) => void)
|
| ((this: Compiler, compiler: Compiler) => void)
|
||||||
| WebpackPluginInstance
|
| WebpackPluginInstance
|
||||||
|
@ -2412,7 +2412,7 @@ declare class Compiler {
|
||||||
compilation: Compilation,
|
compilation: Compilation,
|
||||||
compilerName: string,
|
compilerName: string,
|
||||||
compilerIndex: number,
|
compilerIndex: number,
|
||||||
outputOptions?: OutputNormalized,
|
outputOptions?: Partial<OutputNormalized>,
|
||||||
plugins?: WebpackPluginInstance[]
|
plugins?: WebpackPluginInstance[]
|
||||||
): Compiler;
|
): Compiler;
|
||||||
isChild(): boolean;
|
isChild(): boolean;
|
||||||
|
|
Loading…
Reference in New Issue