How do I satisfy a form structure? #11529
Unanswered
gajraj-gan
asked this question in
Q&A
Replies: 1 comment
-
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 have component which needs a form of following structure. One of the keys will satisfy this strucure.
The rest of the keys in form can be anything else.
The component uses the startTime and endTime.
useWatch({ control, name:
${name}.startTime
})How do I ensure the form satisfies the type of structure and that name (i.e. value of someKey) does not breaks the type in the useWatch ?
Beta Was this translation helpful? Give feedback.
All reactions