fix(types): enable proper type narrowing for defineEmits (#13935)#14150
fix(types): enable proper type narrowing for defineEmits (#13935)#14150tuzixiangs wants to merge 2 commits intovuejs:mainfrom
Conversation
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)packages-private/dts-test/setupHelpers.test-d.ts (1)
🔇 Additional comments (1)
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 |
Size ReportBundles
Usages
|

close #13935
This PR fixes the type narrowing issue with
defineEmitswhen using type-based declaration.Summary by CodeRabbit
Refactor
defineEmits.Tests
defineEmitswith type declarations to ensure correct payload types and event names are enforced.✏️ Tip: You can customize this high-level summary in your review settings.