Closed andredewaard closed 7 months ago
Can you double check the sandbox link? Also this seems intended by Zod at the moment, I don't think it is a bug with vee-validate:
const rules = z.string().min(1, REQUIRED_MSG).min(8, MIN_MSG).catch('');
type type = input<typeof rules>;
// type: unknown
What happened?
Whenever i create a zod object with unions that could be a string or number and transform those into a number the 'toTypedSchema' function returns 'unknown'
Reproduction steps
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
https://codesandbox.io/p/sandbox/veevalidate-qgf5tt?file=%2Fsrc%2Findex.ts%3A11%2C3
Code of Conduct