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(types): augment GlobalComponent interface in vue module #5419

Conversation

BobbieGoede
Copy link
Contributor

@BobbieGoede BobbieGoede commented Mar 14, 2024

Defect Fixes

This fixes the type global component type augmentation which should augment vue instead of @vue/runtime-core see https://vuejs.org/guide/typescript/options-api#augmenting-global-properties for examples.

For some reason augmenting @vue/runtime-core works fine (specifically GlobalComponents) if all vue/nuxt modules do this, but mixing vue and @vue/runtime-core will break type inference, which is why users suspect the module I help maintaining (Nuxt I18n) as they add it after having a project up and running 😅.

Copy link

vercel bot commented Mar 14, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 11:11pm

@tugcekucukoglu tugcekucukoglu added this to the 3.51.0 milestone Mar 15, 2024
@tugcekucukoglu tugcekucukoglu merged commit 8752e16 into primefaces:master Mar 25, 2024
2 of 4 checks passed
@tugcekucukoglu tugcekucukoglu added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Mar 25, 2024
@tugcekucukoglu
Copy link
Member

Thank you for taking the time to support PrimeVue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Adding i18n module to Nuxt breaks typing for all components in Nuxt app
2 participants