Skip to content

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

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

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

danielroe
Copy link
Member

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.

@danielroe danielroe added the bug Something isn't working label Jan 2, 2024
@danielroe danielroe requested a review from antfu January 2, 2024 16:29
@danielroe danielroe self-assigned this Jan 2, 2024
Copy link

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

@antfu antfu merged commit 2ecd32c into main Jan 2, 2024
@antfu antfu deleted the fix/module-types branch January 2, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants