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 dc25448 commit 1a12302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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) => JSX.Element | React.ReactNode;
type RenderProps = (values: Store, form: FormInstance) => React.JSX.Element | React.ReactNode;

export interface FormProps<Values = any> extends BaseFormProps {
initialValues?: Store;
Expand Down
2 changes: 1 addition & 1 deletion src/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ListProps<Values = any> {
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;
Expand Down

0 comments on commit 1a12302

Please sign in to comment.