Skip to content

Typescript useWatch compile error #7413

Answered by felixschorer
tommiCZE asked this question in General
Discussion options

You must be logged in to vote

That's currently not possible without type assertions. #7354 would enable you to do that. Until then you'll have to use type assertions.

https://codesandbox.io/s/zen-chaplygin-s6yov?file=/src/MyInputComponent.tsx

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tommiCZE
Comment options

@felixschorer
Comment options

Answer selected by tommiCZE
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants