Reduce Community lint type-safety warnings

This commit is contained in:
vorotamoroz
2026-07-20 18:08:09 +00:00
parent 2cf535332b
commit 104eeadb4b
29 changed files with 664 additions and 318 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ export const _OpenKeyValueDatabase = async (dbKey: string): Promise<KeyValueData
db = await _openDB();
databaseCache[dbKey] = db;
}
return await db.get(storeKey, key);
const value: unknown = await db.get(storeKey, key);
return value as T;
},
async set<T>(key: IDBValidKey, value: T) {
if (!db) {