File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export type CustomCreateStub = (params: {
31
31
32
32
interface StubOptions {
33
33
name : string
34
- type ?: ConcreteComponent
34
+ type ?: VNodeTypes | typeof Teleport
35
35
renderStubDefaultSlot ?: boolean
36
36
}
37
37
@@ -89,7 +89,7 @@ export const createStub = ({
89
89
90
90
return defineComponent ( {
91
91
name : name || anonName ,
92
- props : componentOptions . props || { } ,
92
+ props : ( componentOptions as ConcreteComponent ) . props || { } ,
93
93
// fix #1550 - respect old-style v-model for shallow mounted components with @vue/compat
94
94
// @ts -expect-error
95
95
model : componentOptions . model ,
@@ -171,7 +171,7 @@ export function stubComponents(
171
171
return [
172
172
createStub ( {
173
173
name : 'transition' ,
174
- type : type as any ,
174
+ type,
175
175
renderStubDefaultSlot : true
176
176
} ) ,
177
177
props ,
@@ -186,7 +186,7 @@ export function stubComponents(
186
186
return [
187
187
createStub ( {
188
188
name : 'transition-group' ,
189
- type : type as any ,
189
+ type,
190
190
renderStubDefaultSlot : true
191
191
} ) ,
192
192
props ,
@@ -201,7 +201,7 @@ export function stubComponents(
201
201
return [
202
202
createStub ( {
203
203
name : 'teleport' ,
204
- type : type as any ,
204
+ type,
205
205
renderStubDefaultSlot : true
206
206
} ) ,
207
207
props ,
You can’t perform that action at this time.
0 commit comments