@@ -17,8 +17,8 @@ export interface App<HostElement = any> {
17
17
config : AppConfig
18
18
use ( plugin : Plugin , ...options : any [ ] ) : this
19
19
mixin ( mixin : ComponentOptions ) : this
20
- component ( name : string ) : Component | undefined
21
- component ( name : string , component : Component ) : this
20
+ component ( name : string ) : PublicAPIComponent | undefined
21
+ component ( name : string , component : PublicAPIComponent ) : this
22
22
directive ( name : string ) : Directive | undefined
23
23
directive ( name : string , directive : Directive ) : this
24
24
mount (
@@ -55,7 +55,7 @@ export interface AppConfig {
55
55
export interface AppContext {
56
56
config : AppConfig
57
57
mixins : ComponentOptions [ ]
58
- components : Record < string , Component >
58
+ components : Record < string , PublicAPIComponent >
59
59
directives : Record < string , Directive >
60
60
provides : Record < string | symbol , any >
61
61
reload ?: ( ) => void // HMR only
@@ -168,7 +168,7 @@ export function createAppAPI<HostNode, HostElement>(
168
168
if ( __DEV__ && context . components [ name ] ) {
169
169
warn ( `Component "${ name } " has already been registered in target app.` )
170
170
}
171
- context . components [ name ] = component as Component
171
+ context . components [ name ] = component
172
172
return app
173
173
} ,
174
174
0 commit comments