-
-
Notifications
You must be signed in to change notification settings - Fork 9k
fix(types): enable proper type narrowing for defineEmits (#13935) #14150
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
base: main
Are you sure you want to change the base?
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.