fix: add typeFrom support for autoimports exports generation#3963
fix: add typeFrom support for autoimports exports generation#39638ctavio wants to merge 2 commits intonitrojs:v2from
typeFrom support for autoimports exports generation#3963Conversation
|
@8ctavio is attempting to deploy a commit to the Nitro Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I think changing |
🔗 Linked issue
#3669 part 2
❓ Type of change
📚 Description
PR #3670 added imports'
typeFormsupport for global declarations; this PR addstypeFromsupport for autoimports'exportstatements, so that explicit imports from#importsmay also find type declarations.Inside the
writeTypesfunction,toExportscall is updated to use imports'typeFromproperty when available (see unjs/unimport#477).📝 Checklist