Skip to content

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

Merged
antfu merged 1 commit intomainfrom
fix/module-types
Jan 2, 2024
Merged

fix(devtools): update default types to module.d.ts/.mts#559
antfu merged 1 commit intomainfrom
fix/module-types

Conversation

@danielroe
Copy link
Copy Markdown
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
@cloudflare-workers-and-pages
Copy link
Copy Markdown

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.

2 participants