diff --git a/src/Form.tsx b/src/Form.tsx index 8c19210a..200282a7 100644 --- a/src/Form.tsx +++ b/src/Form.tsx @@ -17,7 +17,7 @@ import ListContext from './ListContext'; type BaseFormProps = Omit, 'onSubmit' | 'children'>; -type RenderProps = (values: Store, form: FormInstance) => JSX.Element | React.ReactNode; +type RenderProps = (values: Store, form: FormInstance) => React.JSX.Element | React.ReactNode; export interface FormProps extends BaseFormProps { initialValues?: Store; diff --git a/src/List.tsx b/src/List.tsx index f2f1a29c..9a0e6ce6 100644 --- a/src/List.tsx +++ b/src/List.tsx @@ -28,7 +28,7 @@ export interface ListProps { fields: ListField[], operations: ListOperations, meta: Meta, - ) => JSX.Element | React.ReactNode; + ) => React.JSX.Element | React.ReactNode; /** @private Passed by Form.List props. Do not use since it will break by path check. */ isListField?: boolean;