Replies: 2 comments 2 replies
-
You can send a prop which is of type FieldName as 'meta' will be of type FieldMetadata. Does it help ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Maybe this helps const Acomp = ({
formFields,
}: {
formFields: ReturnType<
FormMetadata<z.infer<typeof yourschema>, string[]>["getFieldset"]
>;
}) => {
return <div></div>;
};
<Acomp formFields={fields} /> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am struggling trying to tell typescript that a prop should be of the same type as returned by fields. I'd love better documentation on props and just passing around types in general. Basically, is there a helper for doing this?
Beta Was this translation helpful? Give feedback.
All reactions