TypeScript offers a static type system that can help to prevent many potential runtime errors as applications grow, this is why Vue 3 is built from the ground in TypeScript. This means you don’t need any additional tooling to use TypeScript with Vue because it has full typescript support.

This article will take you on a step-by-step guide to creating a  Vue 3 app with typescript support, adding TypeScript support to an existing Vue 3 app, and finally build a custom hook with vue-class-component.

Prerequisite

  • Node v12.x
  • npm v6.x

Lets start by creating a vue 3 app with typescript support using the vue-CLI tool.

#vue #vue 3 #typescript

How to Create Custom Hooks with Vue 3 and Typescript
25.20 GEEK