blob: f75070c9c910d2673b8e033ab9b1cfaf67322458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 SelectFieldHandler {
onChange: (value: string) => Promise<void>;
error?: string;
value: string;
isDirty?: boolean;
list: Record<string, string>;
}
|