Skip to content

Commit cf525ce

Browse files
Odrinerikras
authored andcommitted
Fix flow types conflict (#295)
* Fix flow types conflict #291 * fix build
1 parent 36eab3d commit cf525ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/types.js.flow

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export type FormProps = {
7878

7979
export type FieldProps = {
8080
allowNull?: boolean,
81-
component?: React.ComponentType<*> | SupportedInputs,
8281
format?: (value: any, name: string) => any,
8382
formatOnBlur?: boolean,
8483
isEqual?: (a: any, b: any) => boolean,
@@ -88,7 +87,9 @@ export type FieldProps = {
8887
validate?: FieldValidator,
8988
validateFields?: string[],
9089
value?: any
91-
} & RenderableProps<FieldRenderProps>
90+
} & RenderableProps<FieldRenderProps> & {
91+
component?: React.ComponentType<*> | SupportedInputs
92+
}
9293

9394
export type FormSpyProps = {
9495
onChange?: (formState: FormState) => void,

0 commit comments

Comments
 (0)