Skip to content

Commit 5524609

Browse files
Lalit3716freshpex
authored andcommitted
fold_dict: Use IterableIterator instead of Iterator.
The type `Iterator` does not allow us to loop over the iterator in a `for` loop. but `IterableIterator` does.
1 parent 9cb6686 commit 5524609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/fold_dict.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class FoldDict<V> {
4242
return this._items.delete(this._munge(key));
4343
}
4444

45-
*keys(): Iterator<string> {
45+
*keys(): IterableIterator<string> {
4646
for (const {k} of this._items.values()) {
4747
yield k;
4848
}

0 commit comments

Comments
 (0)