import { Reducer } from 'redux' ; import { BlocksSection } from '../../state/blocks' ; import { IBlocksFetchedHeight } from '../actions/actionTypes' ; export const BlocksFetchedHeightReducer = ( state , action ) : BlocksSection => ( { ... state , current_height : action . height } ) ;