vue-tsc: JSDoc comments not emitted when using type-only defineProps macro #3645
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Problem
When generating declaration files for Vue components with
vue-tsc --declaration --emitDeclarationOnly
no JSDoc Comments are emitted when using type-only defineProps.I found a few issues regarding JSDoc and defineProps, but most of them deal with default values (such as #2398). And non does describe this issue.
Example
Consider the following component:
The following
Example.vue.d.ts
file is emitted with the comment missing:I would expect the JSDoc comment to be included in the resulting
*.vue.d.ts
file, but that is not the case.Runtime syntax works
When using the runtime syntax, the comment is emitted as expected:
Resulting
d.ts
:Final notes
When using the component within the same project, the hover documentation does correctly display in both cases, so it seems to only affect the emitted declaration files.
The text was updated successfully, but these errors were encountered: