The type of the name
property should be Path<FieldValues>
#12558
Unanswered
perevezencev
asked this question in
Q&A
Replies: 0 comments
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.
-
I am trying to build
FormBuilder
component. And have a code like this:The type of the
name
property should bePath<FieldValues>
, but I don't understand at all how to describe this type so that it matches the type of theschema
field. So I get the errorRight now my
FormValues
type is very abstract and I think that's why I get this error.How should I describe the FormValues type so I don't get this error?
Playground
Beta Was this translation helpful? Give feedback.
All reactions