nuxt / module-builder

Complete solution to build and ship Nuxt modules.
MIT License
224 stars 24 forks source link

`.d.ts` Files not generated for components with script setup #349

Open ThornWalli opened 3 weeks ago

ThornWalli commented 3 weeks ago

Hello,

I have noticed that when a component with <script setup> is created, no .d.ts file is created for it.

Is there a reason for this and is it correct?

image

Thanks!

danielroe commented 2 weeks ago

The reason is that defineProps and other macros in <script setup> need special handling and volar can do that at runtime.

Is it causing any issues for you?