Hacker News new | ask | show | jobs
by bargl 2651 days ago
Have you done any work with Vue and Typescript? We're just starting out with Vue. But my understanding was that TypeScript is a first class citizen in the new version of Vue.
3 comments

TS isn't a first-class citizen in 2.x, and you'll need to go through a couple of awkward maneuvers to prevent Vue from negating many of the benefits of TS, but it can absolutely be done. This sample project sums it up nicely: https://github.com/Armour/vue-typescript-admin-template
You're right. Thanks for the link that's helpful.

Looks like 3.x plans to be built on typescript but I'm not sure if this article is still relevant, I very recently started paying serious attention to Vue.js so I'm playing a game of drink from a fire-hose. https://hub.packtpub.com/vue-js-3-0-is-ditching-javascript-f...

You just need 2 libraries, then it becomes really good: vue-class-components and vuex-module-decorators.
Don't forget vue-property-decorators.
I haven't done much with TypeScript. But I always hear great things.