Skip to content

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

Merged
yyx990803 merged 1 commit intomasterfrom
refactor/defineEmits
Jun 22, 2021
Merged

feat(sfc): add defineEmits and deprecate defineEmit#3725
yyx990803 merged 1 commit intomasterfrom
refactor/defineEmits

Conversation

@posva
Copy link
Copy Markdown
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
Copy Markdown

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