-
-
Notifications
You must be signed in to change notification settings - Fork 254
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 useMessages()
hook using IntlMessages
#1452
Labels
enhancement
New feature or request
Comments
17 tasks
Sounds good, thanks for the report! This will likely make it into the upcoming v4 release: #1489 |
Draft
8 tasks
This has been resolved in the next-intl 4.0 beta! |
I'm unable to find this on npm bun add next-intl@v4-beta
[1.12ms] ".env"
bun add v1.1.42 (50eec002)
error: No version matching "v4-beta" found for specifier "next-intl" (but package exists)
error: next-intl@v4-beta failed to resolve |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
useMessages()
hook does not get proper typing after declaringIntlMessages
.For example:
Describe the solution you'd like
I would like the
useMessages()
hook to respect the type provided by IntlMessagesDescribe alternatives you've considered
I've considered casting in place every time I invoke the hook, but this is error prone.
The text was updated successfully, but these errors were encountered: