Using TypeScript With Vue.js
As mentioned before, TypeScript has gained popularity over the years. It was first introduced in 2012 and as of 2018, gets about 13 million downloads per month. Again, Angular is really invested in TypeScript, making it it’s primary language in the JavaScript framework. So it has the backing of Microsoft and the full support of Google; two massive technology corporations.
In the past, TypeScript support for Vue.js has been spotty at best. However, with a mixture of community outcry and Core Team dedication, that lack of support is no longer a concern. This is backed up by the fact that Vue CLI 3 now offers a TypeScript option when creating your Vue.js application.
If you have not read, Chapter 2: Scaffolding Projects With Vue CLI 3, I highly recommend it. From there, you can go through the actions of creating a new Vue.js project from scratch and selecting the TypeScript option.
If you did not check the TypeScript option during creation, don’...