File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ const AppWithProps = {
66
66
props : {
67
67
a : {
68
68
type : String ,
69
- required : true as true
69
+ required : true
70
70
}
71
71
} ,
72
72
template : ''
73
- }
73
+ } as const
74
74
75
75
// accept props - vm is properly typed
76
76
expectType < string > (
@@ -91,7 +91,7 @@ expectError(
91
91
)
92
92
93
93
const AppWithArrayProps = {
94
- props : [ 'a' ] as [ 'a' ] ,
94
+ props : [ 'a' ] ,
95
95
template : ''
96
96
}
97
97
@@ -137,7 +137,7 @@ expectError(
137
137
mount ( ( props : { a : 1 } ) => { } , {
138
138
props : {
139
139
// @ts -expect-error wrong props
140
- a : '222'
140
+ a : '222'
141
141
}
142
142
} )
143
143
)
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ const AppWithProps = {
38
38
props : {
39
39
a : {
40
40
type : String ,
41
- required : true as true
41
+ required : true
42
42
}
43
43
} ,
44
44
template : ''
45
- }
45
+ } as const
46
46
47
47
// accept props
48
48
// vm is properly typed
@@ -65,7 +65,7 @@ expectError(
65
65
)
66
66
67
67
const AppWithArrayProps = {
68
- props : [ 'a' ] as [ 'a' ] ,
68
+ props : [ 'a' ] ,
69
69
template : ''
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments