1
1
import {
2
+ Component ,
3
+ AsyncComponent ,
2
4
ComponentOptions ,
3
5
FunctionalComponentOptions ,
4
6
WatchOptions ,
@@ -39,10 +41,9 @@ export declare class Vue {
39
41
$emit ( event : string , ...args : any [ ] ) : this;
40
42
$nextTick ( callback ?: ( this : this) => void ) : void ;
41
43
$createElement (
42
- tag ?: string | Vue ,
44
+ tag ?: string | Component | AsyncComponent ,
43
45
data ?: VNodeData ,
44
- children ?: VNodeChildren ,
45
- namespace ?: string
46
+ children ?: VNodeChildren
46
47
) : VNode ;
47
48
48
49
@@ -54,7 +55,7 @@ export declare class Vue {
54
55
keyCodes : { [ key : string ] : number } ;
55
56
}
56
57
57
- static extend ( options : ComponentOptions < Vue > ) : typeof Vue ;
58
+ static extend ( options : ComponentOptions < Vue > | FunctionalComponentOptions ) : typeof Vue ;
58
59
static nextTick ( callback : ( ) => void , context ?: any [ ] ) : void ;
59
60
static set < T > ( object : Object , key : string , value : T ) : T ;
60
61
static set < T > ( array : T [ ] , key : number , value : T ) : T ;
@@ -65,10 +66,7 @@ export declare class Vue {
65
66
definition ?: DirectiveOptions | DirectiveFunction
66
67
) : DirectiveOptions ;
67
68
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 ;
72
70
73
71
static use < T > ( plugin : PluginObject < T > | PluginFunction < T > , options ?: T ) : void ;
74
72
static mixin ( mixin : typeof Vue | ComponentOptions < Vue > ) : void ;
0 commit comments