mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-27 11:33:21 +00:00
Reduce Community lint type-safety warnings
This commit is contained in:
1 parent
2cf535332b
commit
104eeadb4b
29 files changed
+664
-318
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user