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

fix: typescript support #1365

Closed
wants to merge 1 commit into from
Closed

fix: typescript support #1365

wants to merge 1 commit into from

Conversation

sahandsn
Copy link

No description provided.

Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-intl-example-app-router ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 9:48pm
next-intl-example-app-router-without-i18n-routing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 9:48pm

Copy link

vercel bot commented Sep 23, 2024

@sahandsn is attempting to deploy a commit to the next-intl Team on Vercel.

A member of the Team first needs to authorize it.

@@ -34,7 +34,7 @@ type Messages = typeof en;

declare global {
// Use type safe message keys with `next-intl`
interface IntlMessages extends Messages {}
type IntlMessages = Messages
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, only an interface will work correctly.

@amannn amannn closed this Sep 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants