Implement the newest version of RFC
this
is not available inside setup()
. See setup for details.
Complex Prop Types:
import { createComponent, PropType } from 'vue'
createComponent({
props: {
options: (null as any) as PropType<{ msg: string }>
},
setup(props) {
props.options // { msg: string } | undefined
}
})
Implement the init version of RFC