victorgarciaesgi / nuxt-typed-router

🚦Provide autocompletion and typecheck to Nuxt router
https://nuxt-typed-router.vercel.app
MIT License
354 stars 12 forks source link

cannot go to definition correctly #154

Open decba78b opened 2 weeks ago

decba78b commented 2 weeks ago

Describe the bug when I use this module, dts will be rewrite, and this make the IDE's "Go to definition" not work.

Expected behavior the output before use module:

'NuxtWelcome': typeof import("../node_modules/nuxt/dist/app/components/welcome")['default']

the output after use module:

NuxtWelcome: (typeof import('../node_modules/nuxt/dist/app/components/welcome'))['default'];

Reproduction here's the reproduction