blob: 0f8d873e3ed9904f11b0c3af7c1509ccf091db0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { TalerError } from "@gnu-taler/taler-wallet-core";
export interface TextFieldHandler {
onInput: (value: string) => Promise<void>;
value: string;
error?: string;
}
export interface ButtonHandler {
onClick?: () => Promise<void>;
error?: TalerError;
}
export interface ToggleHandler {
value?: boolean;
button: ButtonHandler;
}
export interface SelectFieldHandler {
onChange?: (value: string) => Promise<void>;
error?: string;
value: string;
isDirty?: boolean;
list: Record<string, string>;
}
|