To use Vue 3 with Quasar in TypeScript, you can follow these steps:
Create a new Quasar project with TypeScript option enabled:
43 chars2 lines
Install Vue 3:
21 chars2 lines
Install Quasar:
24 chars2 lines
Install Vue Router and Vuex:
32 chars2 lines
Create a tsconfig.json
file in the root of your project:
400 chars17 lines
Create a shims-vue.d.ts
file in the src
folder:
index.ts151 chars6 lines
Modify the src/main.ts
file to use Vue 3:
index.ts203 chars10 lines
Modify the src/router/index.ts
file to use Vue Router 4:
index.ts303 chars18 lines
Modify the src/store/index.ts
file to use Vuex 4:
index.ts130 chars9 lines
That's it! You can now use Vue 3 with Quasar in TypeScript.
gistlibby LogSnag