From ea113d261835d14b7fb7a14896972efc3c8a75b9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 25 Apr 2019 10:13:32 +0800 Subject: [PATCH] test: separate failing test for TS 3.4 --- types/test/options-test.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/types/test/options-test.ts b/types/test/options-test.ts index b8bdc098312..28060b7c817 100644 --- a/types/test/options-test.ts +++ b/types/test/options-test.ts @@ -76,10 +76,6 @@ Vue.component('union-prop', { complexUnion: { type: [User, Number] as PropType }, kittyUser: Object as PropType, callback: Function as PropType, - mixed: [RegExp, Array], - object: [Cat, User], - primitive: [String, Number], - regex: RegExp, union: [User, Number] as PropType }, data() { @@ -87,10 +83,6 @@ Vue.component('union-prop', { this.complexUnion; this.kittyUser; this.callback(true); - this.mixed; - this.object; - this.primitive; - this.regex.compile; this.union; return { fixedSize: this.union, @@ -98,6 +90,22 @@ Vue.component('union-prop', { } }); +// stopped working since TS 3.4 +// Vue.component('union-prop-with-no-casting', { +// props: { +// mixed: [RegExp, Array], +// object: [Cat, User], +// primitive: [String, Number], +// regex: RegExp +// }, +// data() { +// this.mixed; +// this.object; +// this.primitive; +// this.regex.compile; +// } +// }) + Vue.component('prop-with-primitive-default', { props: { id: {