Skip to content

Commit

Permalink
Fix typings for FieldConfig['component'] (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpetker authored and jaredpalmer committed Feb 7, 2018
1 parent 17f379a commit d4c36db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface FieldConfig {
/**
* Field component to render. Can either be a string like 'select' or a component.
*/
component?: string | React.ComponentType<FieldProps<any> | void>;
component?: string | React.ComponentType<FieldProps<any>> | React.ComponentType<void>;

/**
* Render prop (works like React router's <Route render={props =>} />)
Expand Down

0 comments on commit d4c36db

Please sign in to comment.