refactor: upgrade project to Typescript 5.9

This commit is contained in:
Rainer Killinger
2026-10-01 10:53:00 +02:00
parent 982c0cc57c
commit 444557b725
22 changed files with 158 additions and 256 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
"ts-node": "10.9.2",
"tsup": "8.5.0",
"typedoc": "0.25.12",
"typescript": "5.5.4"
"typescript": "5.9.3"
},
"prettier": "@openstapps/prettier-config",
"eslintConfig": {
+1 -1
View File
@@ -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);