diff options
author | Florian Dold <florian@dold.me> | 2022-09-16 17:21:54 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-16 17:21:54 +0200 |
commit | 16e7814445d57c2494ddaf3aaf11d60abb2b036b (patch) | |
tree | 778f4e473b9f4b8665ea4e9c2ccf59b9836e993f /packages/taler-wallet-core/src/wallet.ts | |
parent | d6c545a0ba68d5fce107779d4b0a2244a137b1aa (diff) | |
download | wallet-core-16e7814445d57c2494ddaf3aaf11d60abb2b036b.tar.xz |
-move declaration
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 13 |
1 files changed, 8 insertions, 5 deletions
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<OperationAttemptResult<unknown, unknown>> { +): Promise<OperationAttemptResult> { 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); |