import { GameState } from '../../../../models/decktracker/game-state' ; import { GameStateEvent } from '../../../../models/decktracker/game-state-event' ; import { ConstructedChangeTabEvent } from '../../event/constructed-change-tab-event' ; import { EventParser } from '../event-parser' ; export class ConstructedChangeTabParser implements EventParser { applies ( gameEvent , state ) { return state && gameEvent . type === ConstructedChangeTabEvent . EVENT_NAME ; } async parse ( currentState , event ) { return currentState . update ( { } as GameState ) ; } event ( ) { return ConstructedChangeTabEvent . EVENT_NAME ; } }