nuxt / module-builder

Complete solution to build and ship Nuxt modules.
MIT License
211 stars 22 forks source link

Incorrect `d.ts` file generation in `types.d.ts` and `types.d.mts` files #291

Closed alSergey closed 1 week ago

alSergey commented 1 week ago

Describe the bug

The following type is generated in the files dist/types.d.ts and dist/types.d.mts

export type { ModuleOptions, default } from './module'

The following type should be generated

export { type ModuleOptions, default } from './module'

Reproduction

Open StackBlitz and go to dist/types.d.ts