Hacker News new | ask | show | jobs
by nmerouze 3462 days ago
You can use JSX instead of string templates. This way you can get type safety.
1 comments

Do you know of any examples of this?
JSX is in the docs: https://vuejs.org/v2/guide/render-function.html#JSX

I don't have any concrete example of Vue.js + JSX + TypeScript but I know it's a bit tricky, see this thread: https://forum.vuejs.org/t/vue-2-0-and-tsx/308/8