Answer the question
In order to leave comments, you need to log in
Where to get State/RootState for vuex typescrpt action?
SO
Action parameters need to be typed, but there are no such classes.
Answer the question
In order to leave comments, you need to log in
I myself am new to typescipt, but have already tried a bunch of options for typing work with vuex in typescipt, including my own solution written from scratch. None of the options I tried give 100% results, but I eventually settled on vuex-smart-module . It also has its limitations, but it suited me the most, both ideologically and functionally (it solves the assigned tasks). It's pretty easy to master.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question