added player to store/state
This commit is contained in:
parent
7a12b1c711
commit
9850441371
|
|
@ -3,12 +3,14 @@ import { createStore, Store } from 'vuex';
|
||||||
import auth, {AuthState} from './auth';
|
import auth, {AuthState} from './auth';
|
||||||
import bullpen, {BullpenState} from './bullpen';
|
import bullpen, {BullpenState} from './bullpen';
|
||||||
import pitchTypes, {PitchTypeState} from './pitchType';
|
import pitchTypes, {PitchTypeState} from './pitchType';
|
||||||
|
import player, {PlayerState} from './player';
|
||||||
|
|
||||||
// Root state type
|
// Root state type
|
||||||
export interface RootState {
|
export interface RootState {
|
||||||
auth: AuthState;
|
auth: AuthState;
|
||||||
bullpen: BullpenState;
|
bullpen: BullpenState;
|
||||||
pitchTypes: PitchTypeState;
|
pitchTypes: PitchTypeState;
|
||||||
|
player: PlayerState;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const key: InjectionKey<Store<RootState>> = Symbol()
|
export const key: InjectionKey<Store<RootState>> = Symbol()
|
||||||
|
|
@ -17,7 +19,8 @@ const store = createStore<RootState>({
|
||||||
modules: {
|
modules: {
|
||||||
auth,
|
auth,
|
||||||
bullpen,
|
bullpen,
|
||||||
pitchTypes
|
pitchTypes,
|
||||||
|
player
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue