-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
What happened?
The types for the values returned from useForm and the fomdata in the handleSubmit closure are not correct when u use a computed as initialValue
Reproduction steps
- goto https://stackblitz.com/edit/vee-validate-computed-initial-values-bug?file=src%2FApp.vue
- click the submit button, (see tha the data.email is working and data.value.email is not)
- open a extra teminal at the bottom
- type
vue-tsc --noEmit {enter}
- see the follwing error (on data.email and not on data.value.email)
error TS2339: Property 'email' does not exist on type 'ComputedRef<{ email: string; }>'.
16 data.email +
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
- Firefox
- Chrome
- Safari
- Microsoft Edge
Relevant log output
error TS2339: Property 'email' does not exist on type 'ComputedRef<{ email: string; }>'.
16 data.email +
### Demo link
https://stackblitz.com/edit/vee-validate-computed-initial-values-bug?file=src%2FApp.vue
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](CONDUCT.md)
Metadata
Metadata
Assignees
Labels
No labels