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
I tried vuex-typescript but got frustrated by the fact that I could not define a payload parameter on a getter and have it recognised by the proxied function, so I switched to this library in the hope that it was fixed but it still gives me a typescript error. This seems to work fine for actions and mutations, but not getters.
You can return a function from a Getter to allow some sort of querying, but keep in mind that only that created function itself is cached as a value, not the calculations that that function itself does.
I tried
vuex-typescript
but got frustrated by the fact that I could not define a payload parameter on a getter and have it recognised by the proxied function, so I switched to this library in the hope that it was fixed but it still gives me a typescript error. This seems to work fine for actions and mutations, but not getters.Example (assumes a module called
config
)^^^^ takes a path parameter
I then define
But if I try to reference that anywhere like this:
I get a typescript error:
Expected 1 arguments but got 2
As I say, it seems fine for actions and mutations
What have I done wrong?
The text was updated successfully, but these errors were encountered: