springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

TypeScript support? #52

Open amcsi opened 8 years ago

amcsi commented 8 years ago

Would it be possible to support TypeScript with some kind of attribute on the script tag?

To be honest, I'm not entirely sure whether it's even possible to use Vue component files together with typescript without the use of separate ts files. But if that were ever possible, it would be so cool if I could have all the component logic in 1 file without having to create another file just for the TS code

maccesch commented 7 years ago

It definitely is possible. I just followed this blog post http://www.mindissoftware.com/Vue-Sample-in-Typescript/ and successfully got the example to work. In the vue file the tag <script> has to be replaced by <script lang="ts">.