import { Dispatch } from 'redux' ; import AppActions from 'types/actions' ; export const CreateQuery = ( { widgetId } ) => ( dispatch ) : void => { dispatch ( { type : 'CREATE_NEW_QUERY' , payload : { widgetId , } , } ) ; } ; export interface CreateQueryProps { widgetId : string ; }