Specify type for Account in Search/Account
This commit is contained in:
parent
8f08b81c87
commit
88faf0a62a
|
@ -3,7 +3,7 @@ import { Module, MutationTree, ActionTree } from 'vuex'
|
||||||
import { RootState } from '@/store'
|
import { RootState } from '@/store'
|
||||||
|
|
||||||
export type AccountState = {
|
export type AccountState = {
|
||||||
results: Array<Account>
|
results: Array<Entity.Account>
|
||||||
}
|
}
|
||||||
|
|
||||||
const state = (): AccountState => ({
|
const state = (): AccountState => ({
|
||||||
|
@ -15,7 +15,7 @@ export const MUTATION_TYPES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const mutations: MutationTree<AccountState> = {
|
const mutations: MutationTree<AccountState> = {
|
||||||
[MUTATION_TYPES.UPDATE_RESULTS]: (state, results: Array<Account>) => {
|
[MUTATION_TYPES.UPDATE_RESULTS]: (state, results: Array<Entity.Account>) => {
|
||||||
state.results = results
|
state.results = results
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue