chore: fix types

This commit is contained in:
Evan You 2023-12-08 22:34:47 +08:00
parent 927ab17cfc
commit c95ab62936
1 changed files with 17 additions and 17 deletions

View File

@ -99,7 +99,7 @@ export type Data = Record<string, unknown>
export type ComponentInstance<T> = T extends { new (): ComponentPublicInstance }
? InstanceType<T>
: T extends FunctionalComponent<infer Props, infer Emits>
? ComponentPublicInstance<Props, {}, {}, {}, {}, Emits>
? ComponentPublicInstance<Props, {}, {}, {}, {}, ShortEmitsToObject<Emits>>
: T extends Component<
infer Props,
infer RawBindings,