11import {
2+ Component ,
3+ AsyncComponent ,
24 ComponentOptions ,
35 FunctionalComponentOptions ,
46 WatchOptions ,
@@ -39,10 +41,9 @@ export declare class Vue {
3941 $emit ( event : string , ...args : any [ ] ) : this;
4042 $nextTick ( callback ?: ( this : this) => void ) : void ;
4143 $createElement (
42- tag ?: string | Vue ,
44+ tag ?: string | Component | AsyncComponent ,
4345 data ?: VNodeData ,
44- children ?: VNodeChildren ,
45- namespace ?: string
46+ children ?: VNodeChildren
4647 ) : VNode ;
4748
4849
@@ -54,7 +55,7 @@ export declare class Vue {
5455 keyCodes : { [ key : string ] : number } ;
5556 }
5657
57- static extend ( options : ComponentOptions < Vue > ) : typeof Vue ;
58+ static extend ( options : ComponentOptions < Vue > | FunctionalComponentOptions ) : typeof Vue ;
5859 static nextTick ( callback : ( ) => void , context ?: any [ ] ) : void ;
5960 static set < T > ( object : Object , key : string , value : T ) : T ;
6061 static set < T > ( array : T [ ] , key : number , value : T ) : T ;
@@ -65,10 +66,7 @@ export declare class Vue {
6566 definition ?: DirectiveOptions | DirectiveFunction
6667 ) : DirectiveOptions ;
6768 static filter ( id : string , definition ?: Function ) : Function ;
68- static component (
69- id : string ,
70- definition ?: ComponentOptions < Vue > | FunctionalComponentOptions | typeof Vue
71- ) : typeof Vue ;
69+ static component ( id : string , definition ?: Component | AsyncComponent ) : typeof Vue ;
7270
7371 static use < T > ( plugin : PluginObject < T > | PluginFunction < T > , options ?: T ) : void ;
7472 static mixin ( mixin : typeof Vue | ComponentOptions < Vue > ) : void ;
0 commit comments