@@ -5,7 +5,12 @@ import {
5
5
ComponentOptionsWithArrayProps ,
6
6
ComponentOptionsWithObjectProps
7
7
} from './componentOptions'
8
- import { SetupContext , RenderFunction , FunctionalComponent } from './component'
8
+ import {
9
+ SetupContext ,
10
+ RenderFunction ,
11
+ FunctionalComponent ,
12
+ DefineComponent
13
+ } from './component'
9
14
import { ComponentPublicInstance } from './componentProxy'
10
15
import { ExtractPropTypes , ComponentPropsOptions } from './componentProps'
11
16
import { EmitsOptions } from './componentEmits'
@@ -59,7 +64,7 @@ export function defineComponent<
59
64
E ,
60
65
VNodeProps & Props
61
66
>
62
- } & ComponentOptionsWithoutProps < Props , RawBindings , D , C , M , E , EE >
67
+ } & DefineComponent //& ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, E, EE>
63
68
64
69
// overload 3: object format with array props declaration
65
70
// props inferred as { [key in PropNames]?: any }
@@ -85,7 +90,7 @@ export function defineComponent<
85
90
) : {
86
91
// array props technically doesn't place any contraints on props in TSX
87
92
new ( ) : ComponentPublicInstance < VNodeProps , RawBindings , D , C , M , E >
88
- } & ComponentOptionsWithArrayProps < PropNames , RawBindings , D , C , M , E , EE >
93
+ } & DefineComponent //& ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, E, EE>
89
94
90
95
// overload 4: object format with object props declaration
91
96
// see `ExtractPropTypes` in ./componentProps.ts
@@ -119,7 +124,7 @@ export function defineComponent<
119
124
E ,
120
125
VNodeProps & ExtractPropTypes < PropsOptions , false >
121
126
>
122
- } & ComponentOptionsWithObjectProps < PropsOptions , RawBindings , D , C , M , E , EE >
127
+ } & DefineComponent //& ComponentOptionsBase <PropsOptions, RawBindings, D, C, M, E, EE>
123
128
124
129
// implementation, close to no-op
125
130
export function defineComponent ( options : unknown ) {
0 commit comments