import { MeasureMethod } from './indicator-types' ; import { QueryByBucketMethod , QueryByEnumMethod , QueryByMeasureMethod } from './query-bucket-types' ; export const isQueryByEnum = ( method ) : method is QueryByEnumMethod => { return method . method === MeasureMethod . ENUM ; } ; export const isQueryByMeasure = ( method ) : method is QueryByMeasureMethod => { return method . method !== MeasureMethod . ENUM ; } ;