vuex-typescript-interface
vuex-typescript-interface copied to clipboard
Adding magical type safety to Vuex without additional code
First of all, thank you for this great plugin! When I try to use mappings it only autocomplete either module or a store (depending on what type I've provided to...
Currently, a project using this package is locked to use vue and vuex versions defined in this package.
Hey, thanks for your awesome lib! When using generics in mutations (and actions too), lookup types are not inferred as accurately as they could be. Here is my store definition:...
This is a fantastic project - thank you for making it! Vuex gives the ability to use `getters` with [method style access](https://vuex.vuejs.org/guide/getters.html#method-style-access). That's useful to have a getter that will...
In theory, given that the modules are not namespaced, I should be able to access them from anywhere, so give: ``` interface UserStore { [SET_USER](user: User): void [details: number]: User;...
This worked as expected: ``` methods: { ...mapActions({ initStoreGroup: 'initStoreGroup' }), } ``` but this failed with message `Spread types may only be created from object types`: ``` methods: {...