From 1a123022b8837b7b4d2039e1513dda3044f90be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=97=E5=98=89=E7=94=B7?= <574980606@qq.com> Date: Mon, 13 Jan 2025 09:06:55 +0800 Subject: [PATCH] fix: fix --- src/Form.tsx | 2 +- src/List.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;