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 {
17
17
ComponentPropsOptions ,
18
18
ComponentObjectPropsOptions ,
19
19
Component ,
20
- ComponentOptions
20
+ AsyncComponentOptions
21
21
} from 'vue'
22
22
import { hyphenate } from '../utils/vueShared'
23
23
import { matchName } from '../utils/matchName'
@@ -123,11 +123,14 @@ export const createStub = ({
123
123
}
124
124
} )
125
125
126
- const { __asyncLoader : asyncLoader } = type as ComponentOptions
126
+ const { __asyncLoader : asyncLoader } = type as {
127
+ __asyncLoader ?: AsyncComponentOptions [ 'loader' ]
128
+ }
127
129
if ( asyncLoader ) {
128
130
asyncLoader ( ) . then ( ( ) => {
129
131
registerStub ( {
130
- source : ( type as ComponentOptions ) . __asyncResolved ,
132
+ source : ( type as { __asyncResolved : ConcreteComponent | undefined } )
133
+ . __asyncResolved ! ,
131
134
stub
132
135
} )
133
136
} )
You can’t perform that action at this time.
0 commit comments