mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-08 10:42:06 +00:00
refactor: upgrade project to Typescript 5.9
This commit is contained in:
@@ -368,7 +368,7 @@ class LRUCache<T> {
|
||||
public put(key: string, content: T) {
|
||||
if (this.entries.size >= this.maxEntries) {
|
||||
// LRU behavior
|
||||
const keyToDelete = this.entries.keys().next().value;
|
||||
const keyToDelete = this.entries.keys().next().value as string;
|
||||
this.entries.delete(keyToDelete);
|
||||
}
|
||||
this.entries.set(key, content);
|
||||
|
||||
Reference in New Issue
Block a user