I'm working on converting one of my Vue apps to use the composition API. I'm getting pretty proficient with it at this point, but there is one aspect I have yet to figure out - custom events. I can emit them by using the parent property on the context parameter to setup, but I can't figure out how to get the component instance. It's not part of the context passed to setup() (at least in the docs), and it's not a parameter to any of the on* lifecycle hook functions.
The actual code I'm trying to convert has the form this.$on('myevent', someHandler). $on isn't defined for this in setup (or in data), and I am wrapping this in a createComponent call, as it's using TypeScri