File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export type ThisTypedComponentOptionsWithArrayProps<
106
106
Record < PropNames , any > ,
107
107
SetupBindings
108
108
> & {
109
- mixin ?: Mixin [ ]
109
+ mixins ?: Mixin [ ]
110
110
extends ?: Extends
111
111
} & ThisType <
112
112
CombinedVueInstance <
@@ -143,7 +143,7 @@ export type ThisTypedComponentOptionsWithRecordProps<
143
143
Props ,
144
144
SetupBindings
145
145
> & {
146
- mixin ?: Mixin [ ]
146
+ mixins ?: Mixin [ ]
147
147
extends ?: Extends
148
148
} & ThisType <
149
149
CombinedVueInstance <
Original file line number Diff line number Diff line change @@ -249,14 +249,21 @@ const ComponentWithStyleInVNodeData = Vue.extend({
249
249
250
250
// infer mixin type with new Vue() #12730
251
251
new Vue ( {
252
- mixin : [
252
+ mixins : [
253
+ {
254
+ data ( ) {
255
+ return {
256
+ foo : 123
257
+ }
258
+ }
259
+ } ,
253
260
{
254
261
methods : {
255
- hello ( ) { }
262
+ hello ( n : number ) { }
256
263
}
257
264
}
258
265
] ,
259
266
created ( ) {
260
- this . hello ( )
267
+ this . hello ( this . foo )
261
268
}
262
269
} )
You can’t perform that action at this time.
0 commit comments