fix: add missing type for default class exports#542
Conversation
📝 WalkthroughWalkthroughThe PR adds detection for default-exported class declarations in ChangesDefault-exported class detection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #542 +/- ##
==========================================
- Coverage 98.73% 94.28% -4.45%
==========================================
Files 14 15 +1
Lines 1817 1033 -784
Branches 374 341 -33
==========================================
- Hits 1794 974 -820
- Misses 23 54 +31
- Partials 0 5 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ff39068 to
27c5c0f
Compare
This PR adds the missing type for
export default class Xso the generated d.ts surfacesdefault as Xin the type re-export block. Without it,Xis only registered as a value and cannot be used as a type.Source:
Before:
After:
waiting on unjs/mlly#354 to be merged
Summary by CodeRabbit
export default class ...is recognized and correctly reflected in generated type declarations.declare globaloutput.