This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Not assignable to parameter of type 'ZodType<any, ZodTypeDef, any>' error on toTypedSchema #4745
Closed
5 tasks done
What happened?
When I pass the value through toTypedSchema
I got this typescript error
and, same on
This results below error, slowing down whole IDE.
But, When I declare type and specify type when I use useForm like below
Type instantiation is excessively deep and possibly infinite.ts(2589), which result slowing down IDE disappear gone but still Argument of type 'ZodObject<{ email: ZodString; }, "strip", ZodTypeAny, { email: string; }, { email: string; }>' is not assignable to parameter of type 'ZodType<any, ZodTypeDef, any>'.
The types of '_def.errorMap' are incompatible between these types.ts(2345) error remains.
Reproduction steps
, result
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: