From 16e7814445d57c2494ddaf3aaf11d60abb2b036b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 16 Sep 2022 17:21:54 +0200 Subject: -move declaration --- packages/taler-wallet-core/src/wallet.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 812106c7a..f89d0330c 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -106,8 +106,6 @@ import { DenominationRecord, exportDb, importDb, - OperationAttemptResult, - OperationAttemptResultType, WalletStoresV1, } from "./db.js"; import { @@ -228,7 +226,12 @@ import { openPromise, } from "./util/promiseUtils.js"; import { DbAccess, GetReadWriteAccess } from "./util/query.js"; -import { RetryInfo, runOperationHandlerForResult } from "./util/retries.js"; +import { + OperationAttemptResult, + OperationAttemptResultType, + RetryInfo, + runOperationHandlerForResult, +} from "./util/retries.js"; import { TimerAPI, TimerGroup } from "./util/timer.js"; import { WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, @@ -284,7 +287,7 @@ async function callOperationHandler( ws: InternalWalletState, pending: PendingTaskInfo, forceNow = false, -): Promise> { +): Promise { switch (pending.type) { case PendingTaskType.ExchangeUpdate: return await updateExchangeFromUrlHandler(ws, pending.exchangeBaseUrl, { @@ -1099,7 +1102,7 @@ async function dispatchRequestInternal( } case "getTransactionById": { const req = codecForTransactionByIdRequest().decode(payload); - return await getTransactionById(ws, req) + return await getTransactionById(ws, req); } case "addExchange": { const req = codecForAddExchangeRequest().decode(payload); -- cgit v1.2.3