Correct way to type component props with withForm #1340
Unanswered
ocampos-biai
asked this question in
General
Replies: 2 comments 1 reply
-
I am also trying to get this to work as alternative to #1335, but I couldn't get it to work so far. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does this work for you ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I was reviewing the documentation and I see that the example for withForm shows how to define string props, like this:
My question is:
If I want to pass more complex props — for example, functions, booleans, or custom objects — how can I specify the type of those props correctly?
Right now, it seems like I'm supposed to write all the props inline in the props object, but I don't see a clear way to type them explicitly. Is there a recommended approach to define and enforce prop types when using withForm?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions