Could ValidateResult / Message be also a ReactNode? #4289
-
Hello! Thanks for the great library 🙏 Just have a small question: I currently have an usecase, where I needed to return a ReactNode as a validation error message and was wondering, whether it would be possible to extend the type of Example usage:
|
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Feb 27, 2021
Replies: 1 comment 4 replies
-
currently, we only support string for |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
dqbd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently, we only support string for
TS
(not a problem with JS), as we have limitations on type support for both string and JSX.