Skip to content

Commit fe7a740

Browse files
yyx990803kiku-jw
authored andcommitted
test: separate failing test for TS 3.4
1 parent 48cc31c commit fe7a740

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

types/test/options-test.ts

+16-8
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,36 @@ Vue.component('union-prop', {
7676
complexUnion: { type: [User, Number] as PropType<User | number> },
7777
kittyUser: Object as PropType<ICat & IUser>,
7878
callback: Function as PropType<ConfirmCallback>,
79-
mixed: [RegExp, Array],
80-
object: [Cat, User],
81-
primitive: [String, Number],
82-
regex: RegExp,
8379
union: [User, Number] as PropType<User | number>
8480
},
8581
data() {
8682
this.cat;
8783
this.complexUnion;
8884
this.kittyUser;
8985
this.callback(true);
90-
this.mixed;
91-
this.object;
92-
this.primitive;
93-
this.regex.compile;
9486
this.union;
9587
return {
9688
fixedSize: this.union,
9789
}
9890
}
9991
});
10092

93+
// stopped working since TS 3.4
94+
// Vue.component('union-prop-with-no-casting', {
95+
// props: {
96+
// mixed: [RegExp, Array],
97+
// object: [Cat, User],
98+
// primitive: [String, Number],
99+
// regex: RegExp
100+
// },
101+
// data() {
102+
// this.mixed;
103+
// this.object;
104+
// this.primitive;
105+
// this.regex.compile;
106+
// }
107+
// })
108+
101109
Vue.component('prop-with-primitive-default', {
102110
props: {
103111
id: {

0 commit comments

Comments
 (0)