File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { FormField } from "./FormField";
8
8
import { FormValidator } from "./FormValidator" ;
9
9
import { FieldValidationResult } from "./FormFieldValidator" ;
10
10
11
- interface FormInvalidFields {
11
+ export interface FormInvalidFields {
12
12
[ name : string ] : string ;
13
13
}
14
14
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { Validator } from "@webiny/validation/types" ;
3
+ import { FormInvalidFields } from "~/FormPresenter" ;
4
+
5
+ export { FormInvalidFields } ;
3
6
4
7
export interface BindComponentRenderPropValidation {
5
8
isValid : boolean | null ;
@@ -95,7 +98,7 @@ export interface FormPropsState<T extends GenericFormData = GenericFormData> {
95
98
data : T ;
96
99
}
97
100
export interface FormProps < T extends GenericFormData = GenericFormData > {
98
- invalidFields ?: { [ key : string ] : any } ;
101
+ invalidFields ?: FormInvalidFields ;
99
102
data ?: Partial < T > ;
100
103
disabled ?: boolean | ( ( state : FormPropsState < T > ) => boolean ) ;
101
104
validateOnFirstSubmit ?: boolean ;
You can’t perform that action at this time.
0 commit comments