Specify type for Account in Search/Account

This commit is contained in:
AkiraFukushima 2021-02-04 11:03:42 +09:00
parent 8f08b81c87
commit 88faf0a62a
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }
} }