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
The following code produces the resulting type error:
constvalidationSchema=toTypedSchema(v.object({email: v.pipe(v.nonOptional(v.string(),'Email is required'),v.trim(),v.email('Must be a valid email'),),}),);
Argument of type 'ObjectSchema<{ readonly email: SchemaWithPipe<[NonOptionalSchema<StringSchema<undefined>, "Email is required">, TrimAction, EmailAction<string, "Must be a valid email">]>; }, undefined>' is not assignable to parameter of type 'BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>'.
Type 'ObjectSchema<{ readonly email: SchemaWithPipe<[NonOptionalSchema<StringSchema<undefined>, "Email is required">, TrimAction, EmailAction<string, "Must be a valid email">]>; }, undefined>' is not assignable to type 'BaseSchema<unknown, unknown, BaseIssue<unknown>>'.ts(2345)
Reproduction steps
install latest valibot
install latest vee-validate and vee-validate/valibot
What happened?
The following code produces the resulting type error:
Reproduction steps
toTypedSchema
methodVersion
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
n/a
Code of Conduct
The text was updated successfully, but these errors were encountered: