From 4fada307a7e5951a7db5e728dc5fb0c4d1b2ca25 Mon Sep 17 00:00:00 2001 From: Sean Larkin Date: Tue, 16 May 2023 05:01:58 +0000 Subject: [PATCH] fix(types): Correct chunkgroup.groupsIterable return type --- lib/Chunk.js | 2 +- types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;