-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 4.2.1
- CLI Version: 3.30.0
- Nitro Version: 2.12.9
- Package Manager: npm@10.9.2
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
Public github repo:
https://github.com/juanpscotto/nuxt-4-module-starter-types-issue
Stackblitz:
In stackblitz wait until the project is setup. Or run this command npm run dev:prepare && npm run prepack if running locally.
Once it has finished check the dist/runtime/components/NavigationComponent.d.vue.ts file, the slot type is missing.
Additional context
There is one component NavigationComponent that has a named slot content with a data prop array of type NavigationItem[]. That type is carried over as any in both NavigationComponent.d.vue.ts and NavigationComponent.vue.d.ts files
NavigationComponent.vue:
NavigationComponent.d.vue.ts
Describe the bug
The slot props types are not being carried over to the generated .ts files of the .vue components. I expect the type of the data props to be recognized.