Looping through defineEmit() #8377
Unanswered
synopss
asked this question in
Help/Questions
Replies: 0 comments
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.
-
I am building an interface for some external lib. I have to make a mapping between their events and mine.
An easy approach would be to do something like that:
Thing is, there are a lot of events, so I would like to avoid repeting myself and copy/pasting my last 3 lines for every event.
So my question is : how do you iterate on that
defineEmit()
?I first thought using
Object.keys()
will work, but that's not the case since there are no keys in the returned object bydefineEmits()
.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions