Subscribe on changes!

ts emits return any

avatar
Aug 24th 2021

Version

3.2.4

Reproduction link

Steps to reproduce

const Test= defineComponent({
  emits: { close: Function as (value: string) => void },
  setup(props, { emit }) {
    return <div></div>;
  },
});

export default defineComponent({
  setup() {
    return () => <Test onClose={() => {}} />;
  },
});

What is expected?

image

What is actually happening?

Inconsistent return types