-fix FTBFS due to inability of TypeScript to identify complex recursive types

This commit is contained in:
Florian Dold 2022-01-05 17:28:56 +01:00
parent 6abb65c70b
commit a5f81b1c87
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -125,7 +125,7 @@ async function dispatch(
break; break;
} }
case "reset-db": { case "reset-db": {
await deleteTalerDatabase(indexedDB); await deleteTalerDatabase(indexedDB as any);
r = wrapResponse(await reinitWallet()); r = wrapResponse(await reinitWallet());
break; break;
} }
@ -250,7 +250,7 @@ async function reinitWallet(): Promise<void> {
currentDatabase = undefined; currentDatabase = undefined;
setBadgeText({ text: "" }); setBadgeText({ text: "" });
try { try {
currentDatabase = await openTalerDatabase(indexedDB, reinitWallet); currentDatabase = await openTalerDatabase(indexedDB as any, reinitWallet);
} catch (e) { } catch (e) {
console.error("could not open database", e); console.error("could not open database", e);
walletInit.reject(e); walletInit.reject(e);