import { handleActions } from 'redux-actions' ; import * as Immutable from 'immutable' ; const ISizeRecord = Immutable . Record ( { column : 0 , row : 0 } ) ; export class ISize extends ISizeRecord { column : number ; row : number ; } const initialState = new ISize ( ) ; export default handleActions ( { 'reset size' ( state , action ) { const { column , row } = action . payload ; return Immutable . fromJS ( { column : column , row : row } ) ; } } , initialState ) ;