diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 56e3d82d1..631ac9509 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -24,7 +24,7 @@ */ import { CryptoWorkerFactory } from "./crypto/workers/cryptoApi"; import { HttpRequestLibrary } from "./util/http"; -import { Database } from "./util/query"; +import { Database, Store } from "./util/query"; import { Amounts, AmountJson } from "./util/amounts"; @@ -52,6 +52,7 @@ import { ReserveRecordStatus, CoinSourceType, RefundState, + MetaStores, } from "./types/dbTypes"; import { CoinDumpJson, WithdrawUriInfoResponse } from "./types/talerTypes"; import { @@ -200,12 +201,12 @@ export class Wallet { private stopped = false; private memoRunRetryLoop = new AsyncOpMemoSingle<void>(); - get db(): Database { + get db(): Database<typeof Stores> { return this.ws.db; } constructor( - db: Database, + db: Database<typeof Stores>, http: HttpRequestLibrary, cryptoWorkerFactory: CryptoWorkerFactory, ) { |