diff --git a/src/matrix/storage/idb/Transaction.ts b/src/matrix/storage/idb/Transaction.ts index 73dfb7b3..ea21b745 100644 --- a/src/matrix/storage/idb/Transaction.ts +++ b/src/matrix/storage/idb/Transaction.ts @@ -57,7 +57,7 @@ export class Transaction { return new Store(this._txn.objectStore(name), this); } - _store(name: StoreNames, mapStore: (idbStore: Store) => any): any { + _store(name: StoreNames, mapStore: (idbStore: Store) => T): T { if (!this._stores[name]) { const idbStore = this._idbStore(name); this._stores[name] = mapStore(idbStore);