Skip to content
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

feat(sfc): add defineEmits and deprecate defineEmit #3725

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

posva
Copy link
Member

@posva posva commented May 5, 2021

Based on vuejs/rfcs#243 and the 3 other repeated PRs. I'm proposing to deprecate defineEmit in favour of defineEmits as defined in the RFC and to match the emits option as well as the plural of defineProps

Even though the we are defining the emit type of the context option in setup(props, { emit }), it seems more idiomatic to make it plural to match defineProps

@github-actions
Copy link

github-actions bot commented May 5, 2021

Size report

Path Size
vue.global.prod.js 41.77 KB (+0.05% 🔺)
runtime-dom.global.prod.js 27.63 KB (+0.06% 🔺)
size-check.global.prod.js 16.8 KB (0%)

@yyx990803 yyx990803 merged commit a137da8 into master Jun 22, 2021
@yyx990803 yyx990803 deleted the refactor/defineEmits branch June 22, 2021 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants