diff options
Diffstat (limited to 'packages/bank-ui/src/hooks/bank-state.ts')
-rw-r--r-- | packages/bank-ui/src/hooks/bank-state.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/bank-ui/src/hooks/bank-state.ts b/packages/bank-ui/src/hooks/bank-state.ts index 616678ddc..54d02e1dc 100644 --- a/packages/bank-ui/src/hooks/bank-state.ts +++ b/packages/bank-ui/src/hooks/bank-state.ts @@ -60,7 +60,12 @@ type CreateTransactionChallenge = BaseChallenge< "create-transaction", TalerCorebankApi.CreateTransactionRequest >; -type ConfirmWithdrawalChallenge = BaseChallenge<"confirm-withdrawal", string>; +type ConfirmWithdrawalChallenge = BaseChallenge< + "confirm-withdrawal", + TalerCorebankApi.BankAccountConfirmWithdrawalRequest & { + id: string; + } +>; type CashoutChallenge = BaseChallenge< "create-cashout", TalerCorebankApi.CashoutRequest @@ -115,7 +120,7 @@ const codecForChallengeConfirmWithdrawal = .property("location", codecForAppLocation()) .property("sent", codecForAbsoluteTime) .property("info", codecOptional(codecForTanTransmission())) - .property("request", codecForString()) + .property("request", codecForAny()) .build("ConfirmWithdrawalChallenge"); const codecForAppLocation = codecForString as () => Codec<AppLocation>; |