diff options
author | 2022-11-08 07:40:02 +0530 | |
---|---|---|
committer | 2022-11-08 17:25:27 +0530 | |
commit | 570d26baf9e4ad87a8c0752b5edfb5c441bf9d80 (patch) | |
tree | ee0a0e6bec7d10ec438b5269537905fee80c377b /src/@types/mobx-form.types.ts | |
parent | refactor: remove toggle component's duplicate (diff) | |
download | ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.gz ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.zst ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.zip |
fix: slack issue caused by input TS conversion
Diffstat (limited to 'src/@types/mobx-form.types.ts')
-rw-r--r-- | src/@types/mobx-form.types.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/@types/mobx-form.types.ts b/src/@types/mobx-form.types.ts index 2a984d3a6..07234a47a 100644 --- a/src/@types/mobx-form.types.ts +++ b/src/@types/mobx-form.types.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { File } from 'electron-dl'; | ||
1 | import { ChangeEventHandler, FocusEventHandler } from 'react'; | 2 | import { ChangeEventHandler, FocusEventHandler } from 'react'; |
2 | import { GlobalError } from './ferdium-components.types'; | 3 | import { GlobalError } from './ferdium-components.types'; |
3 | 4 | ||
@@ -25,6 +26,8 @@ export interface Field extends Listeners { | |||
25 | options?: SelectOptions[]; | 26 | options?: SelectOptions[]; |
26 | default?: string | boolean | number | null; | 27 | default?: string | boolean | number | null; |
27 | validators?: any; // Not sure yet. | 28 | validators?: any; // Not sure yet. |
29 | set?: (value: any) => void; | ||
30 | [key: string]: any; | ||
28 | } | 31 | } |
29 | 32 | ||
30 | export interface SelectOptions { | 33 | export interface SelectOptions { |
@@ -37,4 +40,5 @@ export interface Listeners { | |||
37 | onChange?: ChangeEventHandler<HTMLInputElement | HTMLSelectElement>; | 40 | onChange?: ChangeEventHandler<HTMLInputElement | HTMLSelectElement>; |
38 | onBlur?: FocusEventHandler<HTMLElement>; | 41 | onBlur?: FocusEventHandler<HTMLElement>; |
39 | onFocus?: FocusEventHandler<HTMLElement>; | 42 | onFocus?: FocusEventHandler<HTMLElement>; |
43 | onDrop?: (file: File) => void; | ||
40 | } | 44 | } |