vuex-typed
Vuex can be strongly-typed by interface.
And you can use this with a very simple declaration.
Unlike existing projects, you can also strongly-typed the promise returned from dispatch.
This is an implementation for when the $store on vue can now be typed in the future.
Installation
npm install --save-dev vuex-typed
Example
/* * Attention that it is annotated according to the type declared by the interface. */ ;;; Vue.useVuex; /* * State */ ; /* * Getters */ ; /* * Mutations */ ; /* * Actions */ ; /* * Export */ ;
LICENSE
MIT