@@ -22,8 +22,8 @@ export type ComponentRenderProxy<P = {}, S = {}, PublicProps = P> = {
22
22
S ;
23
23
24
24
// for Vetur and TSX support
25
- type VueConstructorProxy < PropsOptions , RawBindings > = {
26
- new ( ) : ComponentRenderProxy <
25
+ type VueConstructorProxy < PropsOptions , RawBindings > = VueConstructor & {
26
+ new ( ... args : any [ ] ) : ComponentRenderProxy <
27
27
ExtractPropTypes < PropsOptions > ,
28
28
UnwrapRef < RawBindings > ,
29
29
ExtractPropTypes < PropsOptions , false >
@@ -65,15 +65,15 @@ interface ComponentOptionsWithProps<
65
65
setup ?: SetupFunction < Props , RawBindings > ;
66
66
}
67
67
68
- interface ComponentOptionsWithoutProps < Props = never , RawBindings = Data > {
68
+ interface ComponentOptionsWithoutProps < Props = unknown , RawBindings = Data > {
69
69
props ?: undefined ;
70
70
setup ?: SetupFunction < Props , RawBindings > ;
71
71
}
72
72
73
73
// overload 1: object format with no props
74
74
export function createComponent < RawBindings > (
75
- options : ComponentOptionsWithoutProps < never , RawBindings >
76
- ) : VueProxy < never , RawBindings > ;
75
+ options : ComponentOptionsWithoutProps < unknown , RawBindings >
76
+ ) : VueProxy < unknown , RawBindings > ;
77
77
// overload 2: object format with object props declaration
78
78
// see `ExtractPropTypes` in ./componentProps.ts
79
79
export function createComponent <
0 commit comments