diff options
author | Florian Dold <florian@dold.me> | 2023-04-21 22:46:04 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-21 22:46:04 +0200 |
commit | e331012c9f8efef86c6a8a9297b44a67ba8cda66 (patch) | |
tree | 05b645a5594f4e1657afab99f48aaf256e22e446 /packages/taler-wallet-core | |
parent | e81ae0f3e5a510424076b611ac32385057cbdaed (diff) | |
download | wallet-core-e331012c9f8efef86c6a8a9297b44a67ba8cda66.tar.xz |
-fix harness type errors
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/bank-api-client.ts | 3 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/dbless.ts | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/bank-api-client.ts b/packages/taler-wallet-core/src/bank-api-client.ts index de0d4b852..ac8eedc27 100644 --- a/packages/taler-wallet-core/src/bank-api-client.ts +++ b/packages/taler-wallet-core/src/bank-api-client.ts @@ -57,6 +57,9 @@ export interface BankAccountBalanceResponse { } export interface BankServiceHandle { + /** + * @deprecated + */ readonly baseUrl: string; readonly bankAccessApiBaseUrl: string; readonly http: HttpRequestLibrary; diff --git a/packages/taler-wallet-core/src/dbless.ts b/packages/taler-wallet-core/src/dbless.ts index 04bfa1359..30c4247a8 100644 --- a/packages/taler-wallet-core/src/dbless.ts +++ b/packages/taler-wallet-core/src/dbless.ts @@ -205,11 +205,16 @@ export async function withdrawCoin(args: { }; } +export interface FindDenomOptions { + denomselAllowLate?: boolean; +} + export function findDenomOrThrow( - denomselAllowLate: boolean, exchangeInfo: ExchangeInfo, amount: AmountString, + options: FindDenomOptions = {}, ): DenominationRecord { + const denomselAllowLate = options.denomselAllowLate ?? false; for (const d of exchangeInfo.keys.currentDenominations) { const value: AmountJson = { currency: d.currency, |