File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export interface VueConstructor<V extends VueBase = Vue> extends VueMixin<V> {
168
168
169
169
registerHooks ( keys : string [ ] ) : void
170
170
171
- props < P extends { new ( ) : unknown } > (
171
+ with < P extends { new ( ) : unknown } > (
172
172
Props : P
173
173
) : VueConstructor < V & VueWithProps < InstanceType < P > > >
174
174
}
@@ -323,7 +323,7 @@ class VueImpl {
323
323
this . __h . push ( ...keys )
324
324
}
325
325
326
- static props ( Props : { new ( ) : unknown } ) : VueConstructor {
326
+ static with ( Props : { new ( ) : unknown } ) : VueConstructor {
327
327
const propsMeta = new Props ( ) as Record < string , Prop < any > | undefined >
328
328
const props : ComponentObjectPropsOptions = { }
329
329
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ describe('JSX', () => {
24
24
} )
25
25
}
26
26
27
- class App extends Vue . props ( Props ) { }
27
+ class App extends Vue . with ( Props ) { }
28
28
29
29
assertJsx ( < App required = "Hello" /> )
30
30
assertJsx (
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ describe('props', () => {
29
29
invalidDefault : string = prop ( { default : 'default' } )
30
30
}
31
31
32
- class App extends Vue . props ( Props ) {
32
+ class App extends Vue . with ( Props ) {
33
33
mounted ( ) {
34
34
const vm = this
35
35
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ describe('vue-class-component', () => {
394
394
baz = prop ( { default : 'default value' } )
395
395
}
396
396
397
- class App extends Vue . props ( Props ) { }
397
+ class App extends Vue . with ( Props ) { }
398
398
399
399
const { root } = mount ( App , {
400
400
foo : 'foo test' ,
You can’t perform that action at this time.
0 commit comments