Replies: 1 comment 1 reply
-
@louiss0 Thanks for contributing. I am not familiar with zod objects, but feel free to submit a PR with a demo convert function 😊 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think there should be a way to convert Zod schemas to Vue prop types.
Motivation
When writing schemas you will often use a validation library like
zod
yup
or even valibot.A component's props in most situations will have a schema that is similar to the Zod schema
you are using for requests. If there could be a way to convert
zod
schemas to vue prop types thenthat would be awesome.
Beta Was this translation helpful? Give feedback.
All reactions