mirror of https://github.com/zulip/zulip.git
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:
parent
d82b3625f1
commit
dc142ab1d1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue