diff options
Diffstat (limited to 'src/@types')
-rw-r--r-- | src/@types/ferdium-components.types.ts | 2 | ||||
-rw-r--r-- | src/@types/mobx-form.types.ts | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/@types/ferdium-components.types.ts b/src/@types/ferdium-components.types.ts index df5e2f6ed..c4d1f0696 100644 --- a/src/@types/ferdium-components.types.ts +++ b/src/@types/ferdium-components.types.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { Actions } from 'src/actions/lib/actions'; | 1 | import { Actions } from 'src/actions/lib/actions'; |
2 | import { RealStores } from 'src/stores'; | 2 | import { RealStores } from 'src/stores'; |
3 | 3 | ||
4 | export interface DefaultProps { | 4 | export interface StoresProps { |
5 | actions: Actions; | 5 | actions: Actions; |
6 | stores: RealStores; | 6 | stores: RealStores; |
7 | } | 7 | } |
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 | } | ||