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 bullpen, {BullpenState} from './bullpen';
|
||||
import pitchTypes, {PitchTypeState} from './pitchType';
|
||||
import player, {PlayerState} from './player';
|
||||
|
||||
// Root state type
|
||||
export interface RootState {
|
||||
auth: AuthState;
|
||||
bullpen: BullpenState;
|
||||
pitchTypes: PitchTypeState;
|
||||
player: PlayerState;
|
||||
}
|
||||
|
||||
export const key: InjectionKey<Store<RootState>> = Symbol()
|
||||
|
|
@ -17,7 +19,8 @@ const store = createStore<RootState>({
|
|||
modules: {
|
||||
auth,
|
||||
bullpen,
|
||||
pitchTypes
|
||||
pitchTypes,
|
||||
player
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue