import { List , Map } from 'immutable' ; import { ILineup , IParty , PartyRecord } from './lineup.types' ; export function deimmutifyLineup ( state ) { return state . toJS ( ) ; } export function reimmutifyLineup ( plain ) { return List < IParty > ( plain ? plain . map ( PartyRecord ) : [ ] ) ; }