Skip to content

Conversation

wh1teAlter
Copy link
Contributor

🤔 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

Currently, resolveType can only handle types defined inline, which requires usage as shown in the code below, making it somewhat inconvenient
image

💡 Background or solution

Added support for generics in babel-plugin-resolve-type
Take the following code as an example to ensure it works when using generics to pass props and reference type definitions
image

📝 Changelog

Language Changelog
🇺🇸 English Added support for generics in babel-plugin-resolve-type
🇨🇳 Chinese 增加在babel-plugin-resolve-type中对范型的支持

☑️ 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

Copy link

netlify bot commented Jul 2, 2025

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

Name Link
🔨 Latest commit 4d91e39
🔍 Latest deploy log https://app.netlify.com/projects/vue-jsx-explorer/deploys/6897f249f19d5000083bb60f

@sxzz sxzz merged commit dd28b1e into vuejs:main Aug 10, 2025
2 of 6 checks passed
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.

2 participants