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() {
|
get groupsIterable() {
|
||||||
this._groups.sort();
|
this._groups.sort();
|
||||||
|
|
|
@ -839,7 +839,7 @@ declare class Chunk {
|
||||||
removeGroup(chunkGroup: ChunkGroup): void;
|
removeGroup(chunkGroup: ChunkGroup): void;
|
||||||
isInGroup(chunkGroup: ChunkGroup): boolean;
|
isInGroup(chunkGroup: ChunkGroup): boolean;
|
||||||
getNumberOfGroups(): number;
|
getNumberOfGroups(): number;
|
||||||
get groupsIterable(): Iterable<ChunkGroup>;
|
get groupsIterable(): SortableSet<ChunkGroup>;
|
||||||
disconnectFromGroups(): void;
|
disconnectFromGroups(): void;
|
||||||
split(newChunk: Chunk): void;
|
split(newChunk: Chunk): void;
|
||||||
updateHash(hash: Hash, chunkGraph: ChunkGraph): void;
|
updateHash(hash: Hash, chunkGraph: ChunkGraph): void;
|
||||||
|
|
Loading…
Reference in New Issue