-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Type 'TranslateValue' is not assignable to type 'ReactNode' #1012
Comments
yes I think so, would there a fix soon? |
Probably this bug is introduced by this PR #931 CC: @SimplyComplexable |
I'll take a look at this right now. |
Thanks @SimplyComplexable ! I released 2.0.4 with your change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of this package are you using?
2.0.3
What operating system, Node.js, and npm version?
Node 16, pnpm
What happened?
After #1011 TS complains when I pass the
t
function as childrenYou can fix the error by putting string as a generic, but I don't think that this should be a desired behavirour.
{t<string>('translate.key')}
The text was updated successfully, but these errors were encountered: