added player to store/state

This commit is contained in:
Sascha Kühl 2025-05-26 15:43:46 +02:00
parent 7a12b1c711
commit 9850441371
1 changed files with 4 additions and 1 deletions

View File

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