Skip to content

Commit

Permalink
changed MapIterator to IterableIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
overthemike committed Oct 13, 2024
1 parent 83eef9b commit 1dfe0b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vanilla/utils/proxyMap-chunked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function proxyMap<K, V>(entries?: Iterable<[K, V]> | undefined | null) {
cb(item[1]!, item[0]!, this)
})
},
*entries(): MapIterator<[K, V]> {
*entries(): IterableIterator<[K, V]> {
for (const { chunkIndex, position } of indexMap.values()) {
yield this.data[chunkIndex]![position] as [K, V]
}
Expand Down
2 changes: 1 addition & 1 deletion src/vanilla/utils/proxyMap-indexMap-filled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function proxyMap<K, V>(entries?: Iterable<[K, V]> | undefined | null) {
cb(this.data[index]![1]!, this.data[index]![0]!, this)
})
},
*entries(): MapIterator<[K, V]> {
*entries(): IterableIterator<[K, V]> {
for (const index of indexMap.values()) {
yield this.data[index] as [K, V]
}
Expand Down

0 comments on commit 1dfe0b3

Please sign in to comment.