import { IVtxpollAdd , IVtxpollKill , IVtxpollSetIntervalId , VtxpollActions } from './actionTypes' ; import { VtxPollCb } from '../../state/vtxpoll' ; export const VtxpollSetIntervalId = ( interval_id ) : IVtxpollSetIntervalId => ( { type : VtxpollActions . VtxpollSetIntervalId , interval_id } ) ; export const VtxpollKill = ( ) : IVtxpollKill => ( { type : VtxpollActions . VtxpollKill } ) ; export const VtxpollAdd = ( name , interval , cb ) : IVtxpollAdd => ( { type : VtxpollActions . VtxpollAdd , name , interval , cb } ) ;