diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-22 14:22:03 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-22 14:22:03 +0530 |
commit | e60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch) | |
tree | 45f7c86b66dc150d413f9855efaa6341e4a44624 /src/types/walletTypes.ts | |
parent | f4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff) | |
download | wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.xz |
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/types/walletTypes.ts')
-rw-r--r-- | src/types/walletTypes.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/types/walletTypes.ts b/src/types/walletTypes.ts index ee7d071c6..95ec47b67 100644 --- a/src/types/walletTypes.ts +++ b/src/types/walletTypes.ts @@ -303,7 +303,7 @@ export class ReturnCoinsRequest { * Wire details for the bank account of the customer that will * receive the funds. */ - senderWire?: object; + senderWire?: string; /** * Verify that a value matches the schema of this class and convert it into a @@ -406,10 +406,11 @@ export interface WalletDiagnostics { dbOutdated: boolean; } -export interface OperationError { - type: string; +export interface OperationErrorDetails { + talerErrorCode: number; + talerErrorHint: string; message: string; - details: any; + details: unknown; } export interface PlanchetCreationResult { |