Skip to content

Added support for generics in babel-plugin-resolve-type #766

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wh1teAlter
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

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 ready!

Name Link
🔨 Latest commit 012fe46
🔍 Latest deploy log https://app.netlify.com/projects/vue-jsx-explorer/deploys/686502b79714dd0008e520d8
😎 Deploy Preview https://deploy-preview-766--vue-jsx-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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