File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717 ComponentPropsOptions ,
1818 ComponentObjectPropsOptions ,
1919 Component ,
20- ComponentOptions
20+ AsyncComponentOptions
2121} from 'vue'
2222import { hyphenate } from '../utils/vueShared'
2323import { matchName } from '../utils/matchName'
@@ -123,11 +123,14 @@ export const createStub = ({
123123 }
124124 } )
125125
126- const { __asyncLoader : asyncLoader } = type as ComponentOptions
126+ const { __asyncLoader : asyncLoader } = type as {
127+ __asyncLoader ?: AsyncComponentOptions [ 'loader' ]
128+ }
127129 if ( asyncLoader ) {
128130 asyncLoader ( ) . then ( ( ) => {
129131 registerStub ( {
130- source : ( type as ComponentOptions ) . __asyncResolved ,
132+ source : ( type as { __asyncResolved : ConcreteComponent | undefined } )
133+ . __asyncResolved ! ,
131134 stub
132135 } )
133136 } )
You can’t perform that action at this time.
0 commit comments