Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
drodichkin committed Feb 22, 2022
1 parent ffa6b8e commit cf8be2e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/typed-vuex/src/accessor.ts
Original file line number Diff line number Diff line change
@@ -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 = <T extends State,
G extends GetterTree<StateType<T>, any>,
Expand Down Expand Up @@ -63,11 +63,13 @@ const createAccessor = <T extends State, G, M, A, S extends NuxtModules>(
return accessor
}

export const useAccessor = <T extends State,
export const useAccessor = <
T extends State,
G extends GetterTree<StateType<T>, any>,
M extends MutationTree<StateType<T>>,
A extends ActionTree<StateType<T>, any>,
S extends NuxtModules>(
S extends NuxtModules
>(
store: Store<any>,
input: Partial<NuxtStoreInput<T, G, M, A, S>>,
namespace?: string
Expand Down

0 comments on commit cf8be2e

Please sign in to comment.