Skip to content

Conversation

@Ray-D-Song
Copy link

🤔 What is the nature of this change?

  • New feature
  • Fix bug
  • Style optimization
  • Code style optimization
  • Performance optimization
  • Build optimization
  • Refactor code or style
  • Test related
  • Other

🔗 Related Issue

💡 Background or solution

When the resolveType option is enabled in vue-jsx, props types cannot be inferred.
Reproduction link:https://stackblitz.com/edit/vitejs-vite-hjex3faa?file=src%2FApp.tsx

image

📝 Changelog

Language Changelog
🇺🇸 English resolve type reference in props annotation
🇨🇳 Chinese 为 props 增加引用类型声明解析

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@netlify
Copy link

netlify bot commented Nov 12, 2025

Deploy Preview for vue-jsx-explorer failed. Why did it fail? →

Name Link
🔨 Latest commit 1c0863f
🔍 Latest deploy log https://app.netlify.com/projects/vue-jsx-explorer/deploys/6914254e18eed90008a5fd46

@Ray-D-Song
Copy link
Author

Ray-D-Song commented Nov 12, 2025

The strange thing is that the playground cannot reproduce the error in the StackBlitz link. I apologize that I don't have time to investigate this further.

If you later discover differences between them, please let me know.

https://vue-jsx-explorer.netlify.app/#import%20%7B%20defineComponent%20%7D%20from%20'vue'%0A%0Ainterface%20MyProps%20%7B%0A%20%20age%3A%20number%0A%7D%0A%0Aconst%20App%20%3D%20defineComponent((props%3A%20MyProps)%20%3D%3E%20%3Cdiv%3EHello%20World%3C%2Fdiv%3E)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant