You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loving your package. Its great for calling my vuex module from within my components but its biggest drawback is calling other actions and mutations from within the module itself. I've actually got a solution for this working in my project but it would be a breaking change to - introducing a new generic type and breaking calling other modules.
Of course you could include the above types in addition to your existing types and give consumers the choice. Let me know your thoughts and I can send a PR if you would like.
The text was updated successfully, but these errors were encountered:
I have written a commit function which accepts the method and the module to add typing. If you're interested I could share the code or do a PR. It's just an addon, so no breaking changes needed.
Loving your package. Its great for calling my vuex module from within my components but its biggest drawback is calling other actions and mutations from within the module itself. I've actually got a solution for this working in my project but it would be a breaking change to - introducing a new generic type and breaking calling other modules.
With this code you gain strong typing when calling commit (and dispatch):
It does have a few issues:
Of course you could include the above types in addition to your existing types and give consumers the choice. Let me know your thoughts and I can send a PR if you would like.
The text was updated successfully, but these errors were encountered: