refactor(client): schools store

add interface
test/vue
sundowndev 2019-10-29 23:26:41 +01:00
parent 4d23f1d91b
commit 45321e1f5c
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ import { Module } from 'vuex';
import ISchool from '@/models/school';
import config from '@/config';
const schools: Module<{ schools: ISchool[] }, any> = {
export interface IStoreSchools {
schools: ISchool[];
}
const schools: Module<IStoreSchools, any> = {
namespaced: false,
state: {
schools: [],