import { Reducer } from 'redux' ; import { VtxcacheSection } from '../../state/vtxcache' ; import { IVtxcacheClear } from '../actions/actionTypes' ; export const VtxcacheClearReducer = ( state , action ) : VtxcacheSection => { if ( state . store [ action . entity ] ) { delete state . store [ action . entity ] ; } return { ... state , } ; } ;