Description
I couldn't find anything on google, so is this conveniently possible? Basically the bummer for me is that I have to call dispatch
/commit
with a given identifier string to trigger something.
My vision is to define stores as Typescript classes with typed methods (getting intellisense in editor and so on) which I can call instead of dispatch("my_action", data)
and having to look up each and everything and check for errors manually all the time.
Basically my problem is that my team is building a fairly large Vue/Vuex frontend for a core product of our company, consisting of already 18 fairly complex Stores as modules, and this year stuff is going to at least quadruple in size and complexity. We already decided to go on with typescript instead of ES7 and are in the process of migrating our backend/frontend code, but this thing really feels like a bummer.
I think this is not the typical "small" use case for Vue.js, since we're building a huge enterprise frontend with loads of requirements and edge cases, but isn't vuex(/flux) supposed to scale up when complexity rises?
Has anyone experience in building complex, type safe Vuex 2.0 stores in Typescript yet? Any help here would be appreciated