@a2simcode/ui 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/LICENSE +53 -53
  2. package/README.md +130 -129
  3. package/dist/components/autocomplete/index.d.ts +118 -0
  4. package/dist/components/autocomplete/src/autocomplete.vue.d.ts +109 -0
  5. package/dist/components/barcode/index.d.ts +114 -0
  6. package/dist/components/barcode/src/barcode.vue.d.ts +101 -0
  7. package/dist/components/button/index.d.ts +278 -0
  8. package/dist/components/button/src/button.vue.d.ts +268 -0
  9. package/dist/components/buttons/index.d.ts +81 -0
  10. package/dist/components/buttons/src/index.vue.d.ts +76 -0
  11. package/dist/components/buttons/src/interface.d.ts +128 -0
  12. package/dist/components/buttons/src/useButtons.d.ts +4 -0
  13. package/dist/components/cascader-select/index.d.ts +142 -0
  14. package/dist/components/cascader-select/src/cascader-select.vue.d.ts +128 -0
  15. package/dist/components/checkbox/index.d.ts +73 -0
  16. package/dist/components/checkbox/src/checkbox.vue.d.ts +55 -0
  17. package/dist/components/code-mirror/index.d.ts +74 -0
  18. package/dist/components/code-mirror/src/code-mirror.vue.d.ts +45 -0
  19. package/dist/components/comp/index.d.ts +157 -0
  20. package/dist/components/comp/src/comp.vue.d.ts +164 -0
  21. package/dist/components/dialog/index.d.ts +416 -0
  22. package/dist/components/dialog/src/index.vue.d.ts +404 -0
  23. package/dist/components/dialog-full/index.d.ts +311 -0
  24. package/dist/components/dialog-full/src/index.vue.d.ts +287 -0
  25. package/dist/components/drawer/index.d.ts +335 -0
  26. package/dist/components/drawer/src/drawer.vue.d.ts +337 -0
  27. package/dist/components/dynamic-layer/index.d.ts +25 -0
  28. package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +8 -0
  29. package/dist/components/dynamic-layer/src/interface.d.ts +66 -0
  30. package/dist/components/echarts/index.d.ts +177 -0
  31. package/dist/components/echarts/src/echarts.vue.d.ts +118 -0
  32. package/dist/components/form/index.d.ts +194 -0
  33. package/dist/components/form/src/form.vue.d.ts +106 -0
  34. package/dist/components/form/src/interface.d.ts +138 -0
  35. package/dist/components/form/src/useForm/index.d.ts +9 -0
  36. package/dist/components/form/src/useForm/interface.d.ts +170 -0
  37. package/dist/components/form/src/useForm/validateUtil.d.ts +5 -0
  38. package/dist/components/form-item/index.d.ts +112 -0
  39. package/dist/components/form-item/src/form-item.vue.d.ts +97 -0
  40. package/dist/components/icon/index.d.ts +31 -0
  41. package/dist/components/icon/src/icon.vue.d.ts +33 -0
  42. package/dist/components/index.d.ts +35 -0
  43. package/dist/components/input/index.d.ts +111 -0
  44. package/dist/components/input/src/input.vue.d.ts +110 -0
  45. package/dist/components/input-tag/index.d.ts +75 -0
  46. package/dist/components/input-tag/src/input-tag.vue.d.ts +40 -0
  47. package/dist/components/layer/index.d.ts +284 -0
  48. package/dist/components/layer/src/layer.vue.d.ts +263 -0
  49. package/dist/components/layout/__tests__/layout.test.d.ts +1 -0
  50. package/dist/components/layout/index.d.ts +173 -0
  51. package/dist/components/layout/src/layout.vue.d.ts +187 -0
  52. package/dist/components/number/index.d.ts +85 -0
  53. package/dist/components/number/src/number.vue.d.ts +78 -0
  54. package/dist/components/page/index.d.ts +67 -0
  55. package/dist/components/page/src/interface.d.ts +22 -0
  56. package/dist/components/page/src/page.vue.d.ts +52 -0
  57. package/dist/components/radio/index.d.ts +152 -0
  58. package/dist/components/radio/src/radio.vue.d.ts +123 -0
  59. package/dist/components/rate/index.d.ts +71 -0
  60. package/dist/components/rate/src/rate.vue.d.ts +42 -0
  61. package/dist/components/select/index.d.ts +88 -0
  62. package/dist/components/select/src/select.vue.d.ts +75 -0
  63. package/dist/components/slider/index.d.ts +89 -0
  64. package/dist/components/slider/src/slider.vue.d.ts +76 -0
  65. package/dist/components/table/index.d.ts +160 -0
  66. package/dist/components/table/src/table.vue.d.ts +143 -0
  67. package/dist/components/upload/index.d.ts +405 -0
  68. package/dist/components/upload/src/list.vue.d.ts +103 -0
  69. package/dist/components/upload/src/upload.vue.d.ts +367 -0
  70. package/dist/components/upload/src/utils.d.ts +2 -0
  71. package/dist/{utils → components/utils}/index.d.ts +1 -1
  72. package/dist/core/index.d.ts +1 -0
  73. package/dist/core/utils/cipher.d.ts +21 -0
  74. package/dist/core/utils/common.d.ts +41 -0
  75. package/dist/core/utils/comp.d.ts +9 -0
  76. package/dist/core/utils/date.d.ts +3 -0
  77. package/dist/core/utils/dom.d.ts +4 -0
  78. package/dist/core/utils/index.d.ts +6 -0
  79. package/dist/core/utils/is.d.ts +2 -0
  80. package/dist/index.d.ts +6 -8
  81. package/dist/simcode-ui.es.js +5027 -87
  82. package/dist/simcode-ui.umd.js +1 -1
  83. package/dist/stats.html +4949 -0
  84. package/dist/ui.css +1 -0
  85. package/package.json +50 -36
  86. package/dist/button/index.d.ts +0 -192
  87. package/dist/button/src/button.vue.d.ts +0 -76
  88. package/dist/input/index.d.ts +0 -167
  89. package/dist/input/src/input.vue.d.ts +0 -64
  90. package/dist/style.css +0 -1
@@ -0,0 +1,118 @@
1
+ import { PropType } from 'vue';
2
+ import { ECharts, EChartsOption } from 'echarts';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ /**
5
+ * @zh 图表配置信息
6
+ */
7
+ option: {
8
+ type: PropType<EChartsOption>;
9
+ required: true;
10
+ };
11
+ /**
12
+ * @zh 图表主题
13
+ */
14
+ theme: {
15
+ type: PropType<string | object>;
16
+ default: string;
17
+ };
18
+ /**
19
+ * @zh 图表初始化配置
20
+ */
21
+ initOptions: {
22
+ type: PropType<{
23
+ renderer?: "canvas" | "svg";
24
+ devicePixelRatio?: number;
25
+ useDirtyRect?: boolean;
26
+ width?: number;
27
+ height?: number;
28
+ locale?: string;
29
+ }>;
30
+ default: () => {};
31
+ };
32
+ /**
33
+ * @zh 是否在配置项变化时不合并,而是完全替换
34
+ */
35
+ notMerge: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /**
40
+ * @zh 延迟更新时间(毫秒)
41
+ */
42
+ updateDelay: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ }>, {
47
+ getInstance: () => ECharts | undefined;
48
+ resize: (opts?: {
49
+ width?: number;
50
+ height?: number;
51
+ silent?: boolean;
52
+ }) => void;
53
+ clear: () => void;
54
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
55
+ click: (params: any) => any;
56
+ ready: (instance: ECharts) => any;
57
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
58
+ /**
59
+ * @zh 图表配置信息
60
+ */
61
+ option: {
62
+ type: PropType<EChartsOption>;
63
+ required: true;
64
+ };
65
+ /**
66
+ * @zh 图表主题
67
+ */
68
+ theme: {
69
+ type: PropType<string | object>;
70
+ default: string;
71
+ };
72
+ /**
73
+ * @zh 图表初始化配置
74
+ */
75
+ initOptions: {
76
+ type: PropType<{
77
+ renderer?: "canvas" | "svg";
78
+ devicePixelRatio?: number;
79
+ useDirtyRect?: boolean;
80
+ width?: number;
81
+ height?: number;
82
+ locale?: string;
83
+ }>;
84
+ default: () => {};
85
+ };
86
+ /**
87
+ * @zh 是否在配置项变化时不合并,而是完全替换
88
+ */
89
+ notMerge: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ /**
94
+ * @zh 延迟更新时间(毫秒)
95
+ */
96
+ updateDelay: {
97
+ type: NumberConstructor;
98
+ default: number;
99
+ };
100
+ }>> & Readonly<{
101
+ onClick?: ((params: any) => any) | undefined;
102
+ onReady?: ((instance: ECharts) => any) | undefined;
103
+ }>, {
104
+ theme: string | object;
105
+ initOptions: {
106
+ renderer?: "canvas" | "svg";
107
+ devicePixelRatio?: number;
108
+ useDirtyRect?: boolean;
109
+ width?: number;
110
+ height?: number;
111
+ locale?: string;
112
+ };
113
+ notMerge: boolean;
114
+ updateDelay: number;
115
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
116
+ chartRef: HTMLDivElement;
117
+ }, HTMLDivElement>;
118
+ export default _default;
@@ -0,0 +1,194 @@
1
+ export declare const JForm: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ config: {
4
+ type: import('vue').PropType<{
5
+ labelWidth: number | string;
6
+ labelPosition: "left" | "right" | "top";
7
+ size: "" | "large" | "default" | "small";
8
+ gutter: number;
9
+ span: number;
10
+ codeInit: string;
11
+ }>;
12
+ default: () => {};
13
+ };
14
+ isAutoSize: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ schema: {
19
+ type: import('vue').PropType<any[]>;
20
+ default: () => never[];
21
+ };
22
+ readonly: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>> & Readonly<{
27
+ onChange?: ((...args: any[]) => any) | undefined;
28
+ }>, {
29
+ init: (schemas: import('./src/interface').FormSchemaConfig[], _data?: Record<string, any>) => Promise<void>;
30
+ reset: () => void;
31
+ validate: () => Promise<boolean>;
32
+ setValue: ({ id, i, value, type }: {
33
+ id: string;
34
+ i: number;
35
+ value: any;
36
+ type: string;
37
+ }) => void;
38
+ getValue: ({ id, i }: {
39
+ id: string;
40
+ i?: number;
41
+ }) => any;
42
+ getLabel: ({ id, i }: {
43
+ id: string;
44
+ i?: number;
45
+ }) => Promise<any>;
46
+ setFormData: (data: Record<string, any>, filter?: (key: string, value: any, table: string) => boolean) => void;
47
+ getFormData: (useTable?: boolean) => Record<string, any>;
48
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
+ change: (...args: any[]) => void;
50
+ }, import('vue').PublicProps, {
51
+ readonly: boolean;
52
+ config: {
53
+ labelWidth: number | string;
54
+ labelPosition: "left" | "right" | "top";
55
+ size: "" | "large" | "default" | "small";
56
+ gutter: number;
57
+ span: number;
58
+ codeInit: string;
59
+ };
60
+ isAutoSize: boolean;
61
+ schema: any[];
62
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
63
+ P: {};
64
+ B: {};
65
+ D: {};
66
+ C: {};
67
+ M: {};
68
+ Defaults: {};
69
+ }, Readonly<import('vue').ExtractPropTypes<{
70
+ config: {
71
+ type: import('vue').PropType<{
72
+ labelWidth: number | string;
73
+ labelPosition: "left" | "right" | "top";
74
+ size: "" | "large" | "default" | "small";
75
+ gutter: number;
76
+ span: number;
77
+ codeInit: string;
78
+ }>;
79
+ default: () => {};
80
+ };
81
+ isAutoSize: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ schema: {
86
+ type: import('vue').PropType<any[]>;
87
+ default: () => never[];
88
+ };
89
+ readonly: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ }>> & Readonly<{
94
+ onChange?: ((...args: any[]) => any) | undefined;
95
+ }>, {
96
+ init: (schemas: import('./src/interface').FormSchemaConfig[], _data?: Record<string, any>) => Promise<void>;
97
+ reset: () => void;
98
+ validate: () => Promise<boolean>;
99
+ setValue: ({ id, i, value, type }: {
100
+ id: string;
101
+ i: number;
102
+ value: any;
103
+ type: string;
104
+ }) => void;
105
+ getValue: ({ id, i }: {
106
+ id: string;
107
+ i?: number;
108
+ }) => any;
109
+ getLabel: ({ id, i }: {
110
+ id: string;
111
+ i?: number;
112
+ }) => Promise<any>;
113
+ setFormData: (data: Record<string, any>, filter?: (key: string, value: any, table: string) => boolean) => void;
114
+ getFormData: (useTable?: boolean) => Record<string, any>;
115
+ }, {}, {}, {}, {
116
+ readonly: boolean;
117
+ config: {
118
+ labelWidth: number | string;
119
+ labelPosition: "left" | "right" | "top";
120
+ size: "" | "large" | "default" | "small";
121
+ gutter: number;
122
+ span: number;
123
+ codeInit: string;
124
+ };
125
+ isAutoSize: boolean;
126
+ schema: any[];
127
+ }>;
128
+ __isFragment?: never;
129
+ __isTeleport?: never;
130
+ __isSuspense?: never;
131
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
132
+ config: {
133
+ type: import('vue').PropType<{
134
+ labelWidth: number | string;
135
+ labelPosition: "left" | "right" | "top";
136
+ size: "" | "large" | "default" | "small";
137
+ gutter: number;
138
+ span: number;
139
+ codeInit: string;
140
+ }>;
141
+ default: () => {};
142
+ };
143
+ isAutoSize: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ schema: {
148
+ type: import('vue').PropType<any[]>;
149
+ default: () => never[];
150
+ };
151
+ readonly: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ }>> & Readonly<{
156
+ onChange?: ((...args: any[]) => any) | undefined;
157
+ }>, {
158
+ init: (schemas: import('./src/interface').FormSchemaConfig[], _data?: Record<string, any>) => Promise<void>;
159
+ reset: () => void;
160
+ validate: () => Promise<boolean>;
161
+ setValue: ({ id, i, value, type }: {
162
+ id: string;
163
+ i: number;
164
+ value: any;
165
+ type: string;
166
+ }) => void;
167
+ getValue: ({ id, i }: {
168
+ id: string;
169
+ i?: number;
170
+ }) => any;
171
+ getLabel: ({ id, i }: {
172
+ id: string;
173
+ i?: number;
174
+ }) => Promise<any>;
175
+ setFormData: (data: Record<string, any>, filter?: (key: string, value: any, table: string) => boolean) => void;
176
+ getFormData: (useTable?: boolean) => Record<string, any>;
177
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
178
+ change: (...args: any[]) => void;
179
+ }, string, {
180
+ readonly: boolean;
181
+ config: {
182
+ labelWidth: number | string;
183
+ labelPosition: "left" | "right" | "top";
184
+ size: "" | "large" | "default" | "small";
185
+ gutter: number;
186
+ span: number;
187
+ codeInit: string;
188
+ };
189
+ isAutoSize: boolean;
190
+ schema: any[];
191
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
192
+ install: (app: import('vue').App) => void;
193
+ };
194
+ export default JForm;
@@ -0,0 +1,106 @@
1
+ import { PropType } from 'vue';
2
+ import { FormSchemaConfig } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ /**
5
+ * @zh 表单配置
6
+ */
7
+ config: {
8
+ type: PropType<{
9
+ labelWidth: number | string;
10
+ labelPosition: "left" | "right" | "top";
11
+ size: "" | "large" | "default" | "small";
12
+ gutter: number;
13
+ span: number;
14
+ codeInit: string;
15
+ }>;
16
+ default: () => {};
17
+ };
18
+ /**
19
+ * @zh 表单是否自适应外部容器大小
20
+ */
21
+ isAutoSize: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /**
26
+ * @zh 表单模版
27
+ */
28
+ schema: {
29
+ type: PropType<any[]>;
30
+ default: () => never[];
31
+ };
32
+ readonly: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ }>, {
37
+ init: (schemas: FormSchemaConfig[], _data?: Record<string, any>) => Promise<void>;
38
+ reset: () => void;
39
+ validate: () => Promise<boolean>;
40
+ setValue: ({ id, i, value, type }: {
41
+ id: string;
42
+ i: number;
43
+ value: any;
44
+ type: string;
45
+ }) => void;
46
+ getValue: ({ id, i }: {
47
+ id: string;
48
+ i?: number;
49
+ }) => any;
50
+ getLabel: ({ id, i }: {
51
+ id: string;
52
+ i?: number;
53
+ }) => Promise<any>;
54
+ setFormData: (data: Record<string, any>, filter?: (key: string, value: any, table: string) => boolean) => void;
55
+ getFormData: (useTable?: boolean) => Record<string, any>;
56
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
57
+ change: (...args: any[]) => void;
58
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
+ /**
60
+ * @zh 表单配置
61
+ */
62
+ config: {
63
+ type: PropType<{
64
+ labelWidth: number | string;
65
+ labelPosition: "left" | "right" | "top";
66
+ size: "" | "large" | "default" | "small";
67
+ gutter: number;
68
+ span: number;
69
+ codeInit: string;
70
+ }>;
71
+ default: () => {};
72
+ };
73
+ /**
74
+ * @zh 表单是否自适应外部容器大小
75
+ */
76
+ isAutoSize: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ /**
81
+ * @zh 表单模版
82
+ */
83
+ schema: {
84
+ type: PropType<any[]>;
85
+ default: () => never[];
86
+ };
87
+ readonly: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ }>> & Readonly<{
92
+ onChange?: ((...args: any[]) => any) | undefined;
93
+ }>, {
94
+ readonly: boolean;
95
+ config: {
96
+ labelWidth: number | string;
97
+ labelPosition: "left" | "right" | "top";
98
+ size: "" | "large" | "default" | "small";
99
+ gutter: number;
100
+ span: number;
101
+ codeInit: string;
102
+ };
103
+ isAutoSize: boolean;
104
+ schema: any[];
105
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
106
+ export default _default;
@@ -0,0 +1,138 @@
1
+ export interface FormSchemaConfig {
2
+ /**
3
+ * @zh ID
4
+ */
5
+ id?: string;
6
+ /**
7
+ * @zh 插槽名称
8
+ */
9
+ slot?: string;
10
+ /**
11
+ * @zh 类型
12
+ */
13
+ type: string;
14
+ /**
15
+ * @zh 获取组件类型
16
+ */
17
+ getCompType?: any;
18
+ /**
19
+ * @zh 配置信息
20
+ */
21
+ config?: {
22
+ /**
23
+ * @zh 绑定表
24
+ */
25
+ table?: string;
26
+ /**
27
+ * @zh 绑定字段
28
+ */
29
+ field?: string;
30
+ /**
31
+ * @zh 父级表格ID
32
+ */
33
+ parentTableId?: string;
34
+ /**
35
+ * @zh 数据类型
36
+ */
37
+ dataType?: string;
38
+ /**
39
+ * @zh 数据编码
40
+ */
41
+ dataCode?: string;
42
+ /**
43
+ * @zh 数据
44
+ */
45
+ options?: Record<string, any>;
46
+ /**
47
+ * @zh 过滤数据id
48
+ */
49
+ dataFilterIds?: string[];
50
+ /**
51
+ * @zh 值键值
52
+ */
53
+ valueKey?: string;
54
+ /**
55
+ * @zh 显示键值
56
+ */
57
+ labelKey?: string;
58
+ /**
59
+ * @zh id键值
60
+ */
61
+ idKey?: string;
62
+ /**
63
+ * @zh 父级键值
64
+ */
65
+ pidKey?: string;
66
+ /**
67
+ * @zh 上级参数别名
68
+ */
69
+ upKeys?: string;
70
+ /**
71
+ * @zh 数据源参数
72
+ */
73
+ params?: Record<string, any>;
74
+ /**
75
+ * @zh 默认数据
76
+ */
77
+ defaultValue?: any;
78
+ /**
79
+ * @zh 赋值字段名,实现不同组件使用同一个字段的值
80
+ */
81
+ inputValueKey?: string;
82
+ /**
83
+ * @zh 校验规则
84
+ */
85
+ rule?: RuleType[];
86
+ /**
87
+ * @zh 其它属性
88
+ */
89
+ [propName: string]: any;
90
+ };
91
+ /**
92
+ * @zh 获取组件配置
93
+ */
94
+ getCompConfig?: any;
95
+ /**
96
+ * @zh 子集
97
+ */
98
+ children?: FormSchemaConfig[];
99
+ }
100
+ export interface RuleType {
101
+ /**
102
+ * @zh 枚举类型
103
+ */
104
+ enum?: string;
105
+ /**
106
+ * @zh 字段长度
107
+ */
108
+ len?: number;
109
+ /**
110
+ * @zh 最大长度
111
+ */
112
+ max?: number;
113
+ /**
114
+ * @zh 最小长度
115
+ */
116
+ min?: number;
117
+ /**
118
+ * @zh 正则表达式校验
119
+ */
120
+ pattern?: RegExp | string;
121
+ /**
122
+ * @zh 是否必选
123
+ */
124
+ required?: boolean;
125
+ /**
126
+ * @zh 内建校验类型
127
+ */
128
+ type?: string;
129
+ /**
130
+ * @zh 自定义校验
131
+ */
132
+ validator?: any;
133
+ /**
134
+ * @zh 校验文案
135
+ */
136
+ message?: string;
137
+ [propName: string]: any;
138
+ }
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ export interface Props {
3
+ [key: string]: any;
4
+ }
5
+ declare function useForm(modelRef: Props | Ref<Props>, getRules: any): {
6
+ validateForm: () => Promise<Record<string, any>>;
7
+ validateField: (name: string, value: any, rules: Record<string, unknown>[]) => Promise<any>;
8
+ };
9
+ export default useForm;