refs #850 Replace Lists with typescript

This commit is contained in:
AkiraFukushima 2019-04-14 18:45:16 +09:00
parent d27562c5b4
commit de1fda2947
2 changed files with 21 additions and 12 deletions

View File

@ -1,12 +0,0 @@
import Index from './Lists/Index'
import Show from './Lists/Show'
import Edit from './Lists/Edit'
export default {
namespaced: true,
modules: {
Index,
Show,
Edit
}
}

View File

@ -0,0 +1,21 @@
import Index from './Lists/Index'
import Show from './Lists/Show'
import Edit from './Lists/Edit'
import { Module } from 'vuex'
import { RootState } from '@/store'
export interface ListsState {}
export interface ListsModuleState extends ListsState {}
const state = (): ListsState => ({})
export default {
namespaced: true,
state: state,
modules: {
Index,
Show,
Edit
}
} as Module<ListsState, RootState>