Closed koljada closed 4 years ago
Hi @koljada , you're right. I made custom GettersTree because I was trying to make a inferable interfaces to have typed Context, but it was impossible to infer all the context and names of mutations/actions and extending it at the same time!
I'm changing it back to Vuex types! :)
Fixed! Publishing it on 2.1.5
Why does
GettersTree<S>
type have an optional state parameter? I think it should be mandatory. Ideally it should be compatible with the originalGetter
signature:export type Getter<S, R> = (state: S, getters: any, rootState: R, rootGetters: any) => any;
It would be great to have an ability just to pass existed vuex-typed actions/getters/mutations toVuexModule
.