import { Dispatch } from 'redux' ; import AppActions from 'types/actions' ; import { DeleteQueryProps } from 'types/actions/dashboard' ; export const DeleteQuery = ( props ) : ( ( dispatch : Dispatch < AppActions > ) => void ) => { return ( dispatch ) : void => { dispatch ( { type : 'DELETE_QUERY' , payload : { currentIndex : props . currentIndex , widgetId : props . widgetId , } , } ) ; } ; } ;