Skip to content

Commit

Permalink
type(Form): fix children type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 20, 2022
1 parent 230bc9a commit 6e58a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-form/src/Form.tsx
Expand Up @@ -25,7 +25,7 @@ export interface FormState {

export interface FormFieldsProps<T> extends Omit<FormItemProps<T>, 'children'> {
name?: string;
children?: (handle: FormChildrenProps) => JSX.Element;
children?: ((handle: FormChildrenProps) => JSX.Element) | JSX.Element;
help?: React.ReactNode;
labelFor?: string;
inline?: boolean;
Expand Down

0 comments on commit 6e58a65

Please sign in to comment.