diff options
author | Florian Dold <florian@dold.me> | 2022-01-05 17:28:56 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-01-05 17:28:56 +0100 |
commit | a5f81b1c872095fde8e129442ba3a165558435dd (patch) | |
tree | 88caf30b732299e57362aa9098afd3a8904a779f /packages/taler-wallet-webextension/src | |
parent | 6abb65c70bfd1289f3824d4f37346cee7c139417 (diff) | |
download | wallet-core-a5f81b1c872095fde8e129442ba3a165558435dd.tar.xz |
-fix FTBFS due to inability of TypeScript to identify complex recursive types
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r-- | packages/taler-wallet-webextension/src/wxBackend.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index 79280b927..10889f781 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -125,7 +125,7 @@ async function dispatch( break; } case "reset-db": { - await deleteTalerDatabase(indexedDB); + await deleteTalerDatabase(indexedDB as any); r = wrapResponse(await reinitWallet()); break; } @@ -250,7 +250,7 @@ async function reinitWallet(): Promise<void> { currentDatabase = undefined; setBadgeText({ text: "" }); try { - currentDatabase = await openTalerDatabase(indexedDB, reinitWallet); + currentDatabase = await openTalerDatabase(indexedDB as any, reinitWallet); } catch (e) { console.error("could not open database", e); walletInit.reject(e); |