diff options
Diffstat (limited to 'src/@types/mobx-form.types.ts')
-rw-r--r-- | src/@types/mobx-form.types.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/@types/mobx-form.types.ts b/src/@types/mobx-form.types.ts new file mode 100644 index 000000000..6bc20f5e1 --- /dev/null +++ b/src/@types/mobx-form.types.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | export interface FormFieldOptions { | ||
2 | value?: string; | ||
3 | label?: string; | ||
4 | disabled?: boolean; | ||
5 | } | ||
6 | |||
7 | export interface FormFields { | ||
8 | fields: { | ||
9 | [key: string]: { | ||
10 | label?: string; | ||
11 | placeholder?: string; | ||
12 | options?: FormFieldOptions[]; | ||
13 | value?: string | boolean | number | null; | ||
14 | default?: string | boolean | number | null; | ||
15 | type?: string; // todo specifiy probably | ||
16 | disabled?: boolean; | ||
17 | validators?: any; // Not sure yet. | ||
18 | }; | ||
19 | }; | ||
20 | } | ||