-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Open
Labels
Description
Vue version
3.4.27
Link to minimal reproduction
Steps to reproduce
组件Helloworld引入类型TableEmits发生错误

组件Test引入类型TableEmits成功运行

What is expected?
组件HelloWorld传入ElTable得到事件的联合类型
What is actually happening?
[plugin:vite:vue] [@vue/compiler-sfc] Unresolvable type: TSConditionalType
/home/projects/vitejs-vite-wennky/node_modules/.pnpm/vue-component-type-helpers@2.0.26/node_modules/vue-component-type-helpers/index.d.ts
10 | emit: any;
11 | }, ...args: any) => any ? NonNullable : {};
12 | export type ComponentEmit = T extends new (...angs: any) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | $emit: infer E;
| ^^^^^^^^^^^^^^^^^^^
14 | } ? NonNullable : {};
| ^^^^^^^^^^^^^^^^^^^^^^^
System Info
No response
Any additional comments?
No response
sadeghbarati, wtlgo, albertcito, qiphon, max-got and 2 more