Merge pull request #17196 from webpack/thelarkinn/fix-chunk-type

fix(types): Correct chunkgroup.groupsIterable return type
This commit is contained in:
Sean Larkin 2023-05-16 07:43:50 -07:00 committed by GitHub
commit 914e465b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();

2
types.d.ts vendored
View File

@ -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;