Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error messages for helpers? #27

Open
kentcdodds opened this issue Jan 5, 2023 · 2 comments
Open

Custom error messages for helpers? #27

kentcdodds opened this issue Jan 5, 2023 · 2 comments

Comments

@kentcdodds
Copy link

kentcdodds commented Jan 5, 2023

Thanks for the library!
Is there a reason the helpers (like CheckboxAsString) are not functions I can call to pass extra config (like an error message)? How would I specify my own error message?

@rileytomasek
Copy link
Owner

There isn't a good reason and I've been meaning to fix this for a while. They also don't work with .transform().

A PR would be much appreciated and should be straightforward.

@kentcdodds
Copy link
Author

If I end up pursuing this then I'll be happy to. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants