fix(all): strong type text fields

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 14:32:28 +02:00
parent d65174bcf3
commit 1d001a3f29
6 changed files with 24 additions and 18 deletions

View File

@ -1,3 +1,4 @@
import { TextFieldTypes } from '../../interface';
export interface AlertOptions {
header?: string;
@ -12,7 +13,7 @@ export interface AlertOptions {
}
export interface AlertInput {
type: string;
type: TextFieldTypes | 'checkbox' | 'radio';
name: string;
placeholder?: string;
value?: string;
@ -21,8 +22,8 @@ export interface AlertInput {
disabled?: boolean;
id?: string;
handler?: (input: AlertInput) => void;
min?: string | number;
max?: string | number;
min?: number;
max?: number;
}
export interface AlertButton {