Skip to content

Commit a751221

Browse files
committed
fix: fix
1 parent 1a12302 commit a751221

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import ListContext from './ListContext';
1717

1818
type BaseFormProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'children'>;
1919

20-
type RenderProps = (values: Store, form: FormInstance) => React.JSX.Element | React.ReactNode;
20+
type RenderProps = (values: Store, form: FormInstance) => React.ReactNode;
2121

2222
export interface FormProps<Values = any> extends BaseFormProps {
2323
initialValues?: Store;

src/List.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ export interface ListProps<Values = any> {
2424
rules?: ValidatorRule[];
2525
validateTrigger?: string | string[] | false;
2626
initialValue?: any[];
27-
children?: (
28-
fields: ListField[],
29-
operations: ListOperations,
30-
meta: Meta,
31-
) => React.JSX.Element | React.ReactNode;
27+
children?: (fields: ListField[], operations: ListOperations, meta: Meta) => React.ReactNode;
3228

3329
/** @private Passed by Form.List props. Do not use since it will break by path check. */
3430
isListField?: boolean;

0 commit comments

Comments
 (0)