diff --git a/lib/Chunk.js b/lib/Chunk.js index 51a018ed8bd..acc20ec74d3 100644 --- a/lib/Chunk.js +++ b/lib/Chunk.js @@ -505,7 +505,7 @@ class Chunk { } /** - * @returns {Iterable} the chunkGroups that the said chunk is referenced in + * @returns {SortableSet} the chunkGroups that the said chunk is referenced in */ get groupsIterable() { this._groups.sort(); diff --git a/types.d.ts b/types.d.ts index a23e71cdd69..54de487ed5d 100644 --- a/types.d.ts +++ b/types.d.ts @@ -839,7 +839,7 @@ declare class Chunk { removeGroup(chunkGroup: ChunkGroup): void; isInGroup(chunkGroup: ChunkGroup): boolean; getNumberOfGroups(): number; - get groupsIterable(): Iterable; + get groupsIterable(): SortableSet; disconnectFromGroups(): void; split(newChunk: Chunk): void; updateHash(hash: Hash, chunkGraph: ChunkGraph): void;