aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/state.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-13 00:50:56 +0100
committerFlorian Dold <florian@dold.me>2021-01-13 00:50:56 +0100
commit050999a910837f8a5353b1584af2b03bd8dad93d (patch)
tree8b3611476d61be56411be4104194dddda5f6d6c2 /packages/taler-wallet-core/src/operations/state.ts
parenta5681579fbddb001f5b7118fe705c6643581c722 (diff)
implement infrastructure for future DB migrations via backup
Diffstat (limited to 'packages/taler-wallet-core/src/operations/state.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/state.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/state.ts b/packages/taler-wallet-core/src/operations/state.ts
index 1733f13bb..60aee4c3f 100644
--- a/packages/taler-wallet-core/src/operations/state.ts
+++ b/packages/taler-wallet-core/src/operations/state.ts
@@ -23,6 +23,7 @@ import { PendingOperationsResponse } from "../types/pendingTypes";
import { WalletNotification } from "../types/notifications";
import { Database } from "../util/query";
import { openPromise, OpenedPromise } from "../util/promiseUtils";
+import { Stores } from "../types/dbTypes";
type NotificationListener = (n: WalletNotification) => void;
@@ -59,7 +60,7 @@ export class InternalWalletState {
// the actual value nullable.
// Check if we are in a DB migration / garbage collection
// and throw an error in that case.
- public db: Database,
+ public db: Database<typeof Stores>,
public http: HttpRequestLibrary,
cryptoWorkerFactory: CryptoWorkerFactory,
) {