Replies: 4 comments 6 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
Thank you @Moshyfawn. But I have the same problem with |
Beta Was this translation helpful? Give feedback.
-
Hey @avaltat did you come up with a good solution? I am, of course, facing a similar issue :) |
Beta Was this translation helpful? Give feedback.
-
Still have problem :( https://codesandbox.io/s/react-hook-form-control-forked-w39qfq?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
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 would like to know how I can use a generic type extending an interface. Here is a link to a code sandbox describing the issue. https://codesandbox.io/s/react-hook-form-typing-sn11sj?file=/src/App.tsx
As you can see I have the following typescript issue
But
FormValues
extendsBaseFormValues
which specifies thatkey
exists. I first looked at #4426, but If I useThis will not force the parent use a type extending
BaseFormValues
. And I don't want to use a controller here. I thinkkey
should be included inPath<FormValues>
in my example.Any help on this would be very nice 😊 .
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions