nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.85k stars 153 forks source link

fix(devtools): update default types to `module.d.ts`/`.mts` #559

Closed danielroe closed 8 months ago

danielroe commented 8 months ago

when accessing type completion for devtools it is typed as any because there is no default export in dist/types.d.ts.

When using bundler module resolution, it works fine as the types file is dist/module.d.ts instead.

cloudflare-pages[bot] commented 8 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a1dbf8d
Status: ✅  Deploy successful!
Preview URL: https://2f367963.nuxt-devtools.pages.dev
Branch Preview URL: https://fix-module-types.nuxt-devtools.pages.dev

View logs