Writing Vue 2.0 in TypeScript 2.0

Vue2 + TypeScript

Learn to be productive and safer, with the integration of TypeScript in your Vue 2 projects. To be able t follow up you have to know about TypeScript 2.0 and Vue2.0.

The aim of this tutorial is to integrate TypeScript to start writing type-safe vue instance declaration, in Vue’s single file components , and TypeScript in *.vue‘s script tag. Parts:

  • Basic setup
  • Exploring Vue with TypeScript
  • Toward a more type safe API
  • Limitations

Tools used in the tutorial:

TypeScript2 and Vue2, for their definition files, vue-ts-loader: load TypeScript in vue’s single file component, av-ts: wrap vue’s API in type safe-way

Read more here.