@@ -66,13 +66,13 @@ export function mount<V, P>(
66
66
props ( Props : P ) : any
67
67
registerHooks ( keys : string [ ] ) : void
68
68
} ,
69
- options ?: MountingOptions < P >
69
+ options ?: MountingOptions < P & PublicProps >
70
70
) : VueWrapper < ComponentPublicInstance < V > >
71
71
72
72
// Functional component with emits
73
73
export function mount < Props , E extends EmitsOptions = { } > (
74
74
originalComponent : FunctionalComponent < Props , E > ,
75
- options ?: MountingOptions < Props >
75
+ options ?: MountingOptions < Props & PublicProps >
76
76
) : VueWrapper < ComponentPublicInstance < Props > >
77
77
78
78
// Component declared with defineComponent
@@ -150,7 +150,7 @@ export function mount<
150
150
Extends ,
151
151
EE
152
152
> ,
153
- options ?: MountingOptions < never , D >
153
+ options ?: MountingOptions < PublicProps , D >
154
154
) : VueWrapper <
155
155
ComponentPublicInstance < Props , RawBindings , D , C , M , E , VNodeProps & Props >
156
156
>
@@ -182,7 +182,7 @@ export function mount<
182
182
EE ,
183
183
Props
184
184
> ,
185
- options ?: MountingOptions < Props , D >
185
+ options ?: MountingOptions < Props & PublicProps , D >
186
186
) : VueWrapper < ComponentPublicInstance < Props , RawBindings , D , C , M , E > >
187
187
188
188
// Component declared with { props: { ... } }
@@ -210,7 +210,7 @@ export function mount<
210
210
Extends ,
211
211
EE
212
212
> ,
213
- options ?: MountingOptions < ExtractPropTypes < PropsOptions > , D >
213
+ options ?: MountingOptions < ExtractPropTypes < PropsOptions > & PublicProps , D >
214
214
) : VueWrapper <
215
215
ComponentPublicInstance <
216
216
ExtractPropTypes < PropsOptions > ,
0 commit comments