简体   繁体   中英

How to write a vuex store using typescript?

I'm using the latest version of Vue & Vuex. In Vue 2.5 there have been some added support for typescript but I can't seem to figure out how to get vuex working when I change all my vuex store js files to ts.

Does anyone have a sample project that would show me how to write a vuex store in typescript rather than javascript?

I ended up finding and using the following sample project:

https://github.com/hmexx/vue_typescript_starter_kit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM