I’ve got some situation when I was wanted to update my current Vue app to TypeScript. I considered on only updating it partially:
- update store to typescript
- update components to typescript
So for that I did the following steps:
- Install vue cli tool:
npm install -g @vue/cli
- Run
vue add typescript
command in your project - When it asks allowJs set it to true as you have lots of components/js files in your project
- Done. Main file would be changed from .js into .ts, it may have some issues.
If you need some info about migrating store to typescript feel free to ping me in a comment – I’ll write an article if that would be needed for anybody.
Click to rate this post!
[Total: 1 Average: 5]