import * as t from 'io-ts' ; export enum TimeRangeComparisonEnum { WeekBefore = 'week' , DayBefore = 'day' , PeriodBefore = 'period' } export const comparisonTypeRt = t . union ( [ t . literal ( 'day' ) , t . literal ( 'week' ) , t . literal ( 'period' ) , ] ) ; export type TimeRangeComparisonType = t . TypeOf < typeof comparisonTypeRt > ;