direct-vuex icon indicating copy to clipboard operation
direct-vuex copied to clipboard

Use and implement your Vuex store with TypeScript types. Compatible with the Vue 3 composition API.

Results 17 direct-vuex issues
Sort by recently updated
recently updated
newest added

Following the example in the Readme I create a getter in my root store ```ts getters: { myGetter(...args) { const {state, getters} = rootGetterContext(args); } } ``` I am getting...

bug

Are there any plans to add typed variants of these helper functions? I might give it a try myself but I don't know if something like that is possible with...

Hello, When I try to return a value from the store inside a computed function like this: ``` // doesn't work computed: { userFullName: function() { return this.$store.direct.state.user.fullName; ^^^^^^ }...

I'll share my header.spec.ts file that tries to mock a getter and encounters `ts(2615)` on `store.original`: ```ts import {createLocalVue, mount} from '@vue/test-utils' import Vuex from 'vuex' import {createDirectStore} from 'direct-vuex'...

Add support for lazy loading vuex modules and adding them to the direct store. Not sure how Typescript would work in those cases or even of its possible, but this...

Is there a way to shim direct store type with specific module? use case, sharing modules through Lerna monorepo structure there's no way to know which store instance will be...

If I understood the docs, using localGetterContext should resolve the issue with the return types being included in rootGetterContext recursively, by not typing root contexts. Many modules never access anything...

Hi! Thanks for this awesome library. We are converting our code to this library and it works great. Except...the snapshot tests created with Jest. How could we mock the store?...

Hi, first a big thank you for this very nice work! :clap: I think the `p1OrDefault` getter is missing its return type in the https://github.com/paroi-tech/direct-vuex#in-a-vuex-module README section: ```diff getters: {...

I'm looking to subscribe to a state mutation like is done [here](https://vuex.vuejs.org/api/#subscribe). I know this can be accomplished through `store.original.subscribe`, but that doesn't seem to preserve type information. Is there...