import { TimeseriesVisData , TableData , SeriesData } from './types' ; import { PANEL_TYPES } from './enums' ; export const isVisTableData = ( data ) : data is TableData => data . type === PANEL_TYPES . TABLE ; export const isVisSeriesData = ( data ) : data is SeriesData => data . type !== PANEL_TYPES . TABLE ;