You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript Error is thrown for initial values when a property in the schema is required. This should not be the case as the input values should always be able to be initialized as undefined (empty).
I found that for regular objects the PartialDeep seems to work (so all the properties are optional), but when having an array of objects typescript complains that all the required values must be present when initializing
Reproduction steps
Example which shows error for undefined values (more complex schema):
What happened?
Typescript Error is thrown for initial values when a property in the schema is required. This should not be the case as the input values should always be able to be initialized as undefined (empty).
I found that for regular objects the PartialDeep seems to work (so all the properties are optional), but when having an array of objects typescript complains that all the required values must be present when initializing
Reproduction steps
Example which shows error for undefined values (more complex schema):
Example of working version (simple object schema):
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
Code of Conduct
The text was updated successfully, but these errors were encountered: