Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Jan 13, 2025
1 parent 1a12302 commit a751221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import ListContext from './ListContext';

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

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

export interface FormProps<Values = any> extends BaseFormProps {
initialValues?: Store;
Expand Down
6 changes: 1 addition & 5 deletions src/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ export interface ListProps<Values = any> {
rules?: ValidatorRule[];
validateTrigger?: string | string[] | false;
initialValue?: any[];
children?: (
fields: ListField[],
operations: ListOperations,
meta: Meta,
) => React.JSX.Element | React.ReactNode;
children?: (fields: ListField[], operations: ListOperations, meta: Meta) => React.ReactNode;

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

0 comments on commit a751221

Please sign in to comment.