Skip to content
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

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

Open
ThornWalli opened this issue Sep 5, 2024 · 1 comment
Open

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

ThornWalli opened this issue Sep 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ThornWalli
Copy link

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
Copy link
Member

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?

@danielroe danielroe added the question Further information is requested label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants