Type inference with useFieldValue #4891
federicobartoli
started this conversation in
General
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with Vue 3, vee-validate 4.x, Yup, and TypeScript. I've noticed that when using
useFieldValue
, TypeScript doesn't seem to infer the type based on the Yup schema defined.Is there a way to make TypeScript infer the type from the Yup schema when using
useFieldValue
?Here's a minimal example:
Beta Was this translation helpful? Give feedback.
All reactions