vuex-ts-action
Make vuex action context typed.
Give you suggestions and type checking when you use action context.
Example
suggest mutation/action type
suggest mutation/action parameter
If mutation/action doesn't need payload, please pass undefined
.
alert when calling unexisted mutation/action
call root mutation/action
no suggestions and type checking
Usage
; ;; // cannot use MutationTree // cannot use ActionTree;;
TActionContext
Notice
-
Doesn't support
ActionObject
. -
Your can use this plugin with vuex-tstore or vuex-ts-enhance to get suggestions and type checking in components without changing the structure of vuex store.