vuejs / composition-api

Composition API plugin for Vue 2

Home Page:https://composition-api.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请问为什么没有导出VueProxy这个类型

liuzaijiang opened this issue · comments

commented
请问为什么没有导出VueProxy这个类型

非 Vue3 API

commented

非 Vue3 API

请问是否可以提供DefineComponent这个类型,这个是vue3提供的类型,因为发现在tsx中使用defineComponent定义的组件时,是没办法推倒出class,style等htmlAttributes的,在vue3中我们可以通过

type myComponent = DefineComponent<Omit<HTMLAttributes, keyof compProps> & compProps>

实现,这里的VueProxy是不是可以理解为vue3的DefineComponent 这个类型呢?

@antfu

请问是否可以提供DefineComponent这个类型

PR welcome! VueProxy 是内部类型,当时Vue3应该还没有 DefineComponent 这个概念