Closed GopherJ closed 5 years ago
This fixed it for me: https://github.com/ktsn/vuex-class/issues/33#issuecomment-433074018
Try @AclModule.Mutation(UPDATE_ACL_FILTER) updateAclFilter!: () => void;
@austindebruyn Thanks! It works like a charm!
Why can't we use TypeScript implicit typing? We have access to the Actions and its typing. Is there a way to make it work?
Because of decorators not being able to set the type of what it's decorating.... Composition API gives you the ability to infer types.
Questions
Typescript cannot infer correctly the type, am I wrong somewhere?