B
B
BonBon Slick2021-06-25 15:50:57
Vue.js
BonBon Slick, 2021-06-25 15:50:57

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

2 answer(s)
A
Alexey Yarkov, 2021-06-25
@yarkov Vue.js

but there are no such classes.

Gotta write

H
HiDiv, 2021-06-25
@HiDiv

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 question

Ask a Question

731 491 924 answers to any question