Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

TypeScript support? #52

Open
amcsi opened this issue Jul 9, 2016 · 1 comment
Open

TypeScript support? #52

amcsi opened this issue Jul 9, 2016 · 1 comment

Comments

@amcsi
Copy link

amcsi commented Jul 9, 2016

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
Copy link

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">.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants