Comment by epolanski
> I guess this is targeting the vuejs crowd
Vue is written in TS and has first-class support for it, even at the template layer.
> I guess this is targeting the vuejs crowd
Vue is written in TS and has first-class support for it, even at the template layer.
Sadly not because it's been about 6 years since I looked at it! (We ended up switching to React.)
IIRC it's pretty close, but you'll still end up writing things like `{ type: String, required: false }` where in React you'd just write `string | undefined`.
I'm sure I would find many more issues if I was using it in anger, because it's building on a foundation that didn't have Typescript in mind. E.g. see this thread:
https://www.reddit.com/r/vuejs/comments/l456fl/is_vue_3_real...
> IIRC it's pretty close, but you'll still end up writing things like `{ type: String, required: false }` where in React you'd just write `string | undefined`.
In Vue you also write `string | undefined` since Vue 3.
Also note that the thread you linked is 4 years old.
Vue with SFCs is not actually typescript because typescript can not parse the SFC syntax, you need a forked typescript called `vue-tsc` for that.
Shows what a hack vue really is.