diff --git a/packages/typed-vuex/src/accessor.ts b/packages/typed-vuex/src/accessor.ts index b6c2511..ef1cc6e 100644 --- a/packages/typed-vuex/src/accessor.ts +++ b/packages/typed-vuex/src/accessor.ts @@ -1,7 +1,7 @@ -import {ActionTree, GetterTree, Module, MutationTree, Store} from 'vuex' -import {BlankStore, MergedStoreType, NuxtStoreInput} from './types/store' -import {State, StateType} from './types/state' -import {NuxtModules} from './types/modules' +import { ActionTree, GetterTree, Module, MutationTree, Store } from 'vuex' +import { BlankStore, MergedStoreType, NuxtStoreInput } from './types/store' +import { State, StateType } from './types/state' +import { NuxtModules } from './types/modules' export const getAccessorType = , any>, @@ -63,11 +63,13 @@ const createAccessor = ( return accessor } -export const useAccessor = , any>, M extends MutationTree>, A extends ActionTree, any>, - S extends NuxtModules>( + S extends NuxtModules +>( store: Store, input: Partial>, namespace?: string