Apollo.primevue v4.4 - TypeScript migration #183
-
I have an Vue app using TS. I want to use apollo template but its written in JS. Is it ok to migrate apollo app template into TypeScript or its genereally not recommended? Also could you please provide me how to do the JS->TS migration? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Same here |
Beta Was this translation helpful? Give feedback.
-
Thank you for your purchase, Apollo is a vite project in JS, the TS version has the following format;
I'd suggest turning linting part to false during migration of layout code to TS. Once it runs with TS, you can turn it on for further improvements. at root folder.
3.Rename main.js to main.ts 4.In App.vue, add lang="ts" to the script element. 5.Layout folder is the only necessary part, other files like views are demos. .vue files under src/layout should have lang="ts" as well. Now you can add types e.g.;
If you have any questions during migration, please get in touch with us. |
Beta Was this translation helpful? Give feedback.
Thank you for your purchase, Apollo is a vite project in JS, the TS version has the following format;
https://vite.new/vanilla-ts
I'd suggest turning linting part to false during migration of layout code to TS. Once it runs with TS, you can turn it on for further improvements.
at root folder.
3.Rename main.js to main.ts
4.In App.vue, add lang="ts" to the script element.
5.Layout folder is the only necessa…