Skip to content

Commit

Permalink
Merge pull request #17196 from webpack/thelarkinn/fix-chunk-type
Browse files Browse the repository at this point in the history
fix(types): Correct chunkgroup.groupsIterable return type
  • Loading branch information
TheLarkInn committed May 16, 2023
2 parents f87ff76 + 4fada30 commit 914e465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Chunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 914e465

Please sign in to comment.