Skip to content

Commit

Permalink
Merge pull request #86 from HydroGest/dev
Browse files Browse the repository at this point in the history
修复了 MapIterator 的相关问题
  • Loading branch information
HydroGest authored Jan 25, 2025
2 parents 2a58ee7 + 598d385 commit 48d344a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/managers/cacheManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class CacheManager<T> implements Map<string, T> {
return this.cache.size;
}

[Symbol.iterator](): MapIterator<[string, T]> {
[Symbol.iterator](): IterableIterator<[string, T]> {
return this.cache[Symbol.iterator]();
}

Expand All @@ -137,16 +137,16 @@ export class CacheManager<T> implements Map<string, T> {
public has(key: string): boolean {
return this.cache.has(key);
}

public keys(): MapIterator<string> {
public keys(): IterableIterator<string> {
return this.cache.keys();
}

public values(): MapIterator<T> {
public values(): IterableIterator<T> {
return this.cache.values();
}

public entries(): MapIterator<[string, T]> {
public entries(): IterableIterator<[string, T]> {
return this.cache.entries();
}

Expand Down

0 comments on commit 48d344a

Please sign in to comment.