From dd14e67c70cd7b5b6891295759cb08aa2f94f180 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 5 Oct 2022 12:52:49 +0200 Subject: wallet-core: improve crypto worker code duplication Also add new testCrypto call for later testing --- packages/taler-wallet-core/src/errors.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/taler-wallet-core/src/errors.ts') diff --git a/packages/taler-wallet-core/src/errors.ts b/packages/taler-wallet-core/src/errors.ts index 60aecf7a1..f8f5cef0e 100644 --- a/packages/taler-wallet-core/src/errors.ts +++ b/packages/taler-wallet-core/src/errors.ts @@ -76,6 +76,9 @@ export interface DetailsMap { [TalerErrorCode.WALLET_CRYPTO_WORKER_ERROR]: { innerError: TalerErrorDetail; }; + [TalerErrorCode.WALLET_CRYPTO_WORKER_BAD_REQUEST]: { + detail: string; + }; } type ErrBody = Y extends keyof DetailsMap ? DetailsMap[Y] : never; -- cgit v1.2.3