diff options
author | Florian Dold <florian@dold.me> | 2021-01-13 00:50:56 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-13 00:50:56 +0100 |
commit | 050999a910837f8a5353b1584af2b03bd8dad93d (patch) | |
tree | 8b3611476d61be56411be4104194dddda5f6d6c2 /packages/taler-wallet-core/src/operations/state.ts | |
parent | a5681579fbddb001f5b7118fe705c6643581c722 (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.ts | 3 |
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, ) { |