@@ -16,8 +16,8 @@ import { VNode, VNodeData, VNodeChildren, ScopedSlot } from "./vnode";
16
16
import { PluginFunction , PluginObject } from "./plugin" ;
17
17
18
18
export interface CreateElement {
19
- ( tag ?: string | Component < any , any , any , any > | AsyncComponent < any , any , any , any > , children ?: VNodeChildren ) : VNode ;
20
- ( tag ?: string | Component < any , any , any , any > | AsyncComponent < any , any , any , any > , data ?: VNodeData , children ?: VNodeChildren ) : VNode ;
19
+ ( tag ?: string | Component < any , any , any , any > | AsyncComponent < any , any , any , any > | ( ( ) => Component ) , children ?: VNodeChildren ) : VNode ;
20
+ ( tag ?: string | Component < any , any , any , any > | AsyncComponent < any , any , any , any > | ( ( ) => Component ) , data ?: VNodeData , children ?: VNodeChildren ) : VNode ;
21
21
}
22
22
23
23
export interface Vue {
@@ -72,7 +72,7 @@ export interface VueConstructor<V extends Vue = Vue> {
72
72
73
73
extend < PropNames extends string = never > ( definition : FunctionalComponentOptions < Record < PropNames , any > , PropNames [ ] > ) : ExtendedVue < V , { } , { } , { } , Record < PropNames , any > > ;
74
74
extend < Props > ( definition : FunctionalComponentOptions < Props , RecordPropsDefinition < Props > > ) : ExtendedVue < V , { } , { } , { } , Props > ;
75
- extend < Data , Methods , Computed , PropNames extends string > ( options ?: ThisTypedComponentOptionsWithArrayProps < V , Data , Methods , Computed , PropNames > ) : ExtendedVue < V , Data , Methods , Computed , Record < PropNames , any > > ;
75
+ extend < Data , Methods , Computed , PropNames extends string = never > ( options ?: ThisTypedComponentOptionsWithArrayProps < V , Data , Methods , Computed , PropNames > ) : ExtendedVue < V , Data , Methods , Computed , Record < PropNames , any > > ;
76
76
extend < Data , Methods , Computed , Props > ( options ?: ThisTypedComponentOptionsWithRecordProps < V , Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
77
77
extend ( options ?: ComponentOptions < V > ) : ExtendedVue < V , { } , { } , { } , { } > ;
78
78
@@ -94,7 +94,7 @@ export interface VueConstructor<V extends Vue = Vue> {
94
94
component < Data , Methods , Computed , Props > ( id : string , definition : AsyncComponent < Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
95
95
component < PropNames extends string > ( id : string , definition : FunctionalComponentOptions < Record < PropNames , any > , PropNames [ ] > ) : ExtendedVue < V , { } , { } , { } , Record < PropNames , any > > ;
96
96
component < Props > ( id : string , definition : FunctionalComponentOptions < Props , RecordPropsDefinition < Props > > ) : ExtendedVue < V , { } , { } , { } , Props > ;
97
- component < Data , Methods , Computed , PropNames extends string > ( id : string , definition ?: ThisTypedComponentOptionsWithArrayProps < V , Data , Methods , Computed , PropNames > ) : ExtendedVue < V , Data , Methods , Computed , Record < PropNames , any > > ;
97
+ component < Data , Methods , Computed , PropNames extends string = never > ( id : string , definition ?: ThisTypedComponentOptionsWithArrayProps < V , Data , Methods , Computed , PropNames > ) : ExtendedVue < V , Data , Methods , Computed , Record < PropNames , any > > ;
98
98
component < Data , Methods , Computed , Props > ( id : string , definition ?: ThisTypedComponentOptionsWithRecordProps < V , Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
99
99
component ( id : string , definition ?: ComponentOptions < V > ) : ExtendedVue < V , { } , { } , { } , { } > ;
100
100
0 commit comments