mirror of https://github.com/webpack/webpack.git
Merge pull request #17196 from webpack/thelarkinn/fix-chunk-type
fix(types): Correct chunkgroup.groupsIterable return type
This commit is contained in:
commit
914e465b7c
|
@ -505,7 +505,7 @@ class Chunk {
|
|||
}
|
||||
|
||||
/**
|
||||
* @returns {Iterable<ChunkGroup>} the chunkGroups that the said chunk is referenced in
|
||||
* @returns {SortableSet<ChunkGroup>} the chunkGroups that the said chunk is referenced in
|
||||
*/
|
||||
get groupsIterable() {
|
||||
this._groups.sort();
|
||||
|
|
|
@ -839,7 +839,7 @@ declare class Chunk {
|
|||
removeGroup(chunkGroup: ChunkGroup): void;
|
||||
isInGroup(chunkGroup: ChunkGroup): boolean;
|
||||
getNumberOfGroups(): number;
|
||||
get groupsIterable(): Iterable<ChunkGroup>;
|
||||
get groupsIterable(): SortableSet<ChunkGroup>;
|
||||
disconnectFromGroups(): void;
|
||||
split(newChunk: Chunk): void;
|
||||
updateHash(hash: Hash, chunkGraph: ChunkGraph): void;
|
||||
|
|
Loading…
Reference in New Issue