Not a question, but a suggestion. I struggled to use the addMethod() function. I think there are two things that could be improved in the documentation that would have helped me:
Add another example. The current example shows how to format a string. It would be nice to also have an example showing how to validate something – see below.
Not a question, but a suggestion. I struggled to use the addMethod() function. I think there are two things that could be improved in the documentation that would have helped me:
import { type StringSchema } from 'yup'
. Without this import, the types were broken, but I didn't get any helpful feedback from TypeScript, so it took me a while to understand the problem.Also – Thank you for your work!