@@ -16,8 +16,8 @@ import { VNode, VNodeData, VNodeChildren, ScopedSlot } from "./vnode";
1616import { PluginFunction , PluginObject } from "./plugin" ;
1717
1818export 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 ;
2121}
2222
2323export interface Vue {
@@ -72,7 +72,7 @@ export interface VueConstructor<V extends Vue = Vue> {
7272
7373 extend < PropNames extends string = never > ( definition : FunctionalComponentOptions < Record < PropNames , any > , PropNames [ ] > ) : ExtendedVue < V , { } , { } , { } , Record < PropNames , any > > ;
7474 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 > > ;
7676 extend < Data , Methods , Computed , Props > ( options ?: ThisTypedComponentOptionsWithRecordProps < V , Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
7777 extend ( options ?: ComponentOptions < V > ) : ExtendedVue < V , { } , { } , { } , { } > ;
7878
@@ -94,7 +94,7 @@ export interface VueConstructor<V extends Vue = Vue> {
9494 component < Data , Methods , Computed , Props > ( id : string , definition : AsyncComponent < Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
9595 component < PropNames extends string > ( id : string , definition : FunctionalComponentOptions < Record < PropNames , any > , PropNames [ ] > ) : ExtendedVue < V , { } , { } , { } , Record < PropNames , any > > ;
9696 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 > > ;
9898 component < Data , Methods , Computed , Props > ( id : string , definition ?: ThisTypedComponentOptionsWithRecordProps < V , Data , Methods , Computed , Props > ) : ExtendedVue < V , Data , Methods , Computed , Props > ;
9999 component ( id : string , definition ?: ComponentOptions < V > ) : ExtendedVue < V , { } , { } , { } , { } > ;
100100
0 commit comments