-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add genDynamicTypeImport
#125
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #125 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 336 354 +18
Branches 82 87 +5
=========================================
+ Hits 336 354 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
genDynamicTypeImport
danielroe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great - thank you ❤️
When generating types for auto imports, we usually access properties using
['...']directly. However, when this appears aftertypeof import('...'), the identifier at that position is not a valid reference. I would like to have a util that helps us generatetypeof import('...').defaultinstead oftypeof import('...')['default']whenever possible.