22 lines
445 B
TypeScript
22 lines
445 B
TypeScript
|
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>;
|
||
|
}
|
||
|
|