@@ -40,7 +40,7 @@ export type Accessors<T> = {
40
40
*/
41
41
export type ThisTypedComponentOptions < Data , Methods , Computed , PropNames extends string = never , Instance extends AnyVue = Vue < Data , Methods , Computed , Record < PropNames , any > > > =
42
42
object &
43
- ComponentOptions < Data , Methods , Computed , PropNames [ ] | Record < PropNames , PropOptions > > &
43
+ ComponentOptions < Data | ( ( this : Record < PropNames , any > & AnyVue ) => Data ) , Methods , Computed , PropNames [ ] | Record < PropNames , PropOptions > > &
44
44
ThisType < Data & Methods & Computed & Record < PropNames , any > & Instance > ;
45
45
46
46
/**
@@ -49,7 +49,7 @@ export type ThisTypedComponentOptions<Data, Methods, Computed, PropNames extends
49
49
*/
50
50
export type ThisTypedComponentOptionsWithArrayProps < Data , Methods , Computed , PropNames extends string , Instance extends AnyVue = Vue < Data , Methods , Computed , PropNames > > =
51
51
object &
52
- ComponentOptions < Data , Methods , Computed , PropNames [ ] > &
52
+ ComponentOptions < Data | ( ( this : Record < PropNames , any > & AnyVue ) => Data ) , Methods , Computed , PropNames [ ] > &
53
53
ThisType < Data & Methods & Computed & Record < PropNames , any > & Instance > ;
54
54
55
55
/**
@@ -58,7 +58,7 @@ export type ThisTypedComponentOptionsWithArrayProps<Data, Methods, Computed, Pro
58
58
*/
59
59
export type ThisTypedComponentOptionsWithRecordProps < Data , Methods , Computed , Props , Instance extends AnyVue = Vue < Data , Methods , Computed , Props > > =
60
60
object &
61
- ComponentOptions < Data , Methods , Computed , Props > &
61
+ ComponentOptions < Data | ( ( this : Record < keyof Props , any > & AnyVue ) => Data ) , Methods , Computed , Props > &
62
62
ThisType < Data & Methods & Computed & Record < keyof Props , any > & Instance > ;
63
63
64
64
/**
@@ -71,7 +71,7 @@ export type FunctionalOrStandardComponentOptions<Data, Methods, Computed, PropNa
71
71
72
72
73
73
export interface ComponentOptions < Data , Methods , Computed , Props > {
74
- data ?: Data | ( ( ) => Data ) ;
74
+ data ?: Data ;
75
75
props ?: Props ;
76
76
propsData ?: Object ;
77
77
computed ?: Accessors < Computed > ;
0 commit comments