From f180d0580457e1e9bd502293df327dfe138dd422 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 Aug 2020 12:41:00 +0530 Subject: remove excessive namespacing, format --- packages/taler-wallet-webextension/src/wxApi.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wxApi.ts') diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts index ee86d90e5..1bcee1285 100644 --- a/packages/taler-wallet-webextension/src/wxApi.ts +++ b/packages/taler-wallet-webextension/src/wxApi.ts @@ -21,7 +21,7 @@ /** * Imports. */ -import { AmountJson, walletTypes } from "taler-wallet-core"; +import { AmountJson, ConfirmPayResult, BalancesResponse, PurchaseDetails, TipStatus, BenchmarkResult, PreparePayResult, AcceptWithdrawalResponse, WalletDiagnostics } from "taler-wallet-core"; export interface ExtendedPermissionsResponse { @@ -101,7 +101,7 @@ export function refresh(coinPub: string): Promise { export function confirmPay( proposalId: string, sessionId: string | undefined, -): Promise { +): Promise { return callBackend("confirm-pay", { proposalId, sessionId }); } @@ -122,7 +122,7 @@ export function resetDb(): Promise { /** * Get balances for all currencies/exchanges. */ -export function getBalance(): Promise { +export function getBalance(): Promise { return callBackend("balances", {}); } @@ -143,14 +143,14 @@ export function returnCoins(args: { */ export function getPurchaseDetails( proposalId: string, -): Promise { +): Promise { return callBackend("get-purchase-details", { proposalId }); } /** * Get the status of processing a tip. */ -export function getTipStatus(talerTipUri: string): Promise { +export function getTipStatus(talerTipUri: string): Promise { return callBackend("get-tip-status", { talerTipUri }); } @@ -180,14 +180,14 @@ export function abortFailedPayment(contractTermsHash: string): Promise { /** * Abort a failed payment and try to get a refund. */ -export function benchmarkCrypto(repetitions: number): Promise { +export function benchmarkCrypto(repetitions: number): Promise { return callBackend("benchmark-crypto", { repetitions }); } /** * Get details about a pay operation. */ -export function preparePay(talerPayUri: string): Promise { +export function preparePay(talerPayUri: string): Promise { return callBackend("prepare-pay", { talerPayUri }); } @@ -197,7 +197,7 @@ export function preparePay(talerPayUri: string): Promise { +): Promise { return callBackend("accept-withdrawal", { talerWithdrawUri, selectedExchange, @@ -207,7 +207,7 @@ export function acceptWithdrawal( /** * Get diagnostics information */ -export function getDiagnostics(): Promise { +export function getDiagnostics(): Promise { return callBackend("get-diagnostics", {}); } -- cgit v1.2.3