Adding Typescript@5.5.x to a nuxt/ionic project with helpers exposed via a plugin, results in automatic type information being lost for that plugin. The helper is instead unknown and therefor results in an error when running nuxi typecheck despite it working when running the app.
As far as I can tell plugin typing still seems to be working for all the other nuxt modules in my project but that might also be because it's manually typed.
đ The bug
Adding Typescript@5.5.x to a nuxt/ionic project with helpers exposed via a plugin, results in automatic type information being lost for that plugin. The helper is instead
unknown
and therefor results in an error when runningnuxi typecheck
despite it working when running the app.Steps to reproduce
Open the repro and run
npx nuxi typecheck
đ ī¸ To reproduce
https://stackblitz.com/edit/github-xow1vb?file=plugins%2Ftest.ts
đ Expected behaviour
That automatic plugin types work the same as on previous versions of typescript.
Workaround
Manually declare types for plugins as described in the nuxt docs https://nuxt.com/docs/guide/directory-structure/plugins#typing-plugins
âšī¸ Additional context
As far as I can tell plugin typing still seems to be working for all the other nuxt modules in my project but that might also be because it's manually typed.