import { OutputMessageItem , OutputMessageType , WolfState } from '../types' ; export function addMessageToQueue ( state , message , messageType = OutputMessageType . abilityCompleteMessage , slotName ? ) { let messageItem = { message , type : messageType , slotName } ; const updatedState = Object . assign ( { } , state ) ; updatedState . outputMessageQueue . push ( messageItem ) ; return updatedState ; }