-
-
Notifications
You must be signed in to change notification settings - Fork 438
Vue-component-meta | Can't generate defineModel description and tags #4592
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
Comments
What are you using to generate the JSDoc? |
I encountered a similar issue: The JSDoc However, the JSDoc My component code: <script setup lang="ts">
interface Props {
/**
* 卡片的 title <-- JSDoc description info of props...
*/
title?: string
}
defineProps<Props>()
interface Emits {
/**
* 卡片的 showMessage <-- JSDoc description info of emits...
*/
showMessage: [msg: string]
}
const emits = defineEmits<Emits>()
</script> I got: Is this an unknown bug in the vue-component-meta package, or is it designed this way? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue - Official extension or vue-tsc version
2.0.22
VSCode version
1.90.2
Vue version
3.4.30
TypeScript version
5.5.2
System Info
Steps to reproduce
Create a basic script setup ts component with defineModel and generate meta.
What is expected?
I'd expect the JSdoc comment associated to defineModel to be assigned to the prop, or alternatively to both the prop and the event.
What is actually happening?
Both prop and event are generated, but still the metadata from JSdoc can't be processed. Description and tags are both empty.
The prop generated:
The event generated:
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: