Merge pull request #15187 from forivall/fix/addChunkInGroup-typings
fix: revise call signature of addChunkInGroup
This commit is contained in:
commit
91dd188e01
|
@ -3555,10 +3555,11 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
|
|||
}
|
||||
|
||||
/**
|
||||
* If `module` is passed, `loc` and `request` must also be passed.
|
||||
* @param {string | ChunkGroupOptions} groupOptions options for the chunk group
|
||||
* @param {Module} module the module the references the chunk group
|
||||
* @param {DependencyLocation} loc the location from with the chunk group is referenced (inside of module)
|
||||
* @param {string} request the request from which the the chunk group is referenced
|
||||
* @param {Module=} module the module the references the chunk group
|
||||
* @param {DependencyLocation=} loc the location from with the chunk group is referenced (inside of module)
|
||||
* @param {string=} request the request from which the the chunk group is referenced
|
||||
* @returns {ChunkGroup} the new or existing chunk group
|
||||
*/
|
||||
addChunkInGroup(groupOptions, module, loc, request) {
|
||||
|
|
|
@ -1644,11 +1644,15 @@ declare class Compilation {
|
|||
module: RuntimeModule,
|
||||
chunkGraph?: ChunkGraph
|
||||
): void;
|
||||
|
||||
/**
|
||||
* If `module` is passed, `loc` and `request` must also be passed.
|
||||
*/
|
||||
addChunkInGroup(
|
||||
groupOptions: string | ChunkGroupOptions,
|
||||
module: Module,
|
||||
loc: DependencyLocation,
|
||||
request: string
|
||||
module?: Module,
|
||||
loc?: SyntheticDependencyLocation | RealDependencyLocation,
|
||||
request?: string
|
||||
): ChunkGroup;
|
||||
addAsyncEntrypoint(
|
||||
options: EntryOptions,
|
||||
|
|
Loading…
Reference in New Issue