Replace or override baseEndpoints
I want to replace the built in resetPassword endpoint
If the path is not
/reset-password
, it gives a type error
If the path is /reset-password
it doesn't give a type error, but the return type is still the default { status: boolean }
.
If I remove body zod schema, data returns { message: string }
3 Replies
hmm. so are you saying the return types being affected by weather you provide a body schema or not?
ya
and also the endpoint matter as well
the endpoint does matter in the type inference. will take a look about the return type inference being affected by the body schema.