Skip to content

Commit

Permalink
Field.children can be a function or a node (jaredpalmer#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
timc13 authored and jaredpalmer committed Feb 14, 2018
1 parent 468b117 commit 00abb04
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 @@ -61,7 +61,7 @@ export interface FieldConfig {
/**
* Children render function <Field name>{props => ...}</Field>)
*/
children?: ((props: FieldProps<any>) => React.ReactNode);
children?: ((props: FieldProps<any>) => React.ReactNode) | React.ReactNode;

/**
* Validate a single field value independently
Expand Down

0 comments on commit 00abb04

Please sign in to comment.