import { AppState } from '../RendererTypes' ; import { selectItem } from '../actions/index' ; param state param action returns export const checkSelectItem = ( state , action ) : AppState => { return Object . assign ( { } , state , { currentItem : action . payload . item } ) ; } ;