New RFC of defineEmits in vue 3.3 ? #500
Closed
edwinhuish
started this conversation in
RFC Discussions
Replies: 2 comments 19 replies
-
Because the return type is irrelevant in most cases. Why would you prefer a more verbose syntax? |
Beta Was this translation helpful? Give feedback.
10 replies
-
Example by @edwinhuish just makes sense. I can't explain why. Funny thing, this was just suggested to me by Copilot: const emit = defineEmits<{
'update:modelValue': (value: boolean) => void
}>() |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I saw this in twitter More ergonomic defineEmits() with types coming in 3.3!,
But... why we just do it like this:
Beta Was this translation helpful? Give feedback.
All reactions