We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36eab3d commit cf525ceCopy full SHA for cf525ce
src/types.js.flow
@@ -78,7 +78,6 @@ export type FormProps = {
78
79
export type FieldProps = {
80
allowNull?: boolean,
81
- component?: React.ComponentType<*> | SupportedInputs,
82
format?: (value: any, name: string) => any,
83
formatOnBlur?: boolean,
84
isEqual?: (a: any, b: any) => boolean,
@@ -88,7 +87,9 @@ export type FieldProps = {
88
87
validate?: FieldValidator,
89
validateFields?: string[],
90
value?: any
91
-} & RenderableProps<FieldRenderProps>
+} & RenderableProps<FieldRenderProps> & {
+ component?: React.ComponentType<*> | SupportedInputs
92
+}
93
94
export type FormSpyProps = {
95
onChange?: (formState: FormState) => void,
0 commit comments