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.
This commit is contained in:
Lalit Kumar Singh 2023-09-11 12:23:31 +05:30 committed by Tim Abbott
parent d82b3625f1
commit dc142ab1d1
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export class FoldDict<V> {
return this._items.delete(this._munge(key));
}
*keys(): Iterator<string> {
*keys(): IterableIterator<string> {
for (const {k} of this._items.values()) {
yield k;
}