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: vue-i18n type definition for vue package #1888

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

kazupon
Copy link
Member

@kazupon kazupon commented Jul 14, 2024

No description provided.

@kazupon kazupon added the Type: Improvement Includes backwards-compatible fixes label Jul 14, 2024
Copy link

Deploying vue-i18n-next with  Cloudflare Pages  Cloudflare Pages

Latest commit: d38633f
Status: ✅  Deploy successful!
Preview URL: https://48929470.vue-i18n-next.pages.dev
Branch Preview URL: https://fix-vue-type-definition-exte.vue-i18n-next.pages.dev

View logs

@kazupon kazupon merged commit c18144d into master Jul 14, 2024
25 checks passed
@kazupon kazupon deleted the fix/vue-type-definition-extending branch July 14, 2024 08:41
@BobbieGoede
Copy link
Member

I think we will need a patch release for v9 to also change the type augmentations to use 'vue' 😥 (relevant nuxt/nuxt#28542)

Due to Vue Router changing its augmentation, Nuxt is doing so too, mixed augmentation will break projects with v9.

@BobbieGoede
Copy link
Member

@kazupon
I've created a v9 branch based on e37cba0 which includes this change as well as c07fbe3 here https://github.com/BobbieGoede/vue-i18n-next/tree/v9

@kazupon
Copy link
Member Author

kazupon commented Aug 16, 2024

@BobbieGoede
Thanks!
I've made v9 branch in vue-i18n.

You can open the PR on it!

kazupon added a commit that referenced this pull request Aug 16, 2024
* fix: vue-i18n type definition for vue package (#1888)

* fix: vue-i18n-bridge type definition for vue package

---------

Co-authored-by: kazuya kawaguchi <[email protected]>
@hinogi
Copy link
Contributor

hinogi commented Oct 1, 2024

problem persists with v10.0.0 and vue 3.5

@BobbieGoede
Copy link
Member

@hinogi
Can you open a new issue and provide a minimal reproduction? 🙏

@hinogi
Copy link
Contributor

hinogi commented Oct 1, 2024

I guess I am unable to do that. But I use Quasar and vite and I get TS2339 Property $t does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<__VLS_PublicProps, { "update:modelValue": (modelValue: string) => any }>...>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Includes backwards-compatible fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants