interface Facet {
id: number;
type: FacetType;
title: string;
values?: Array<FacetValue>FacetRange<T> {
type: string;
min?: T;
max?: T;
start?: T;
end?: T;
}
interface DateFacetRange extends FacetRange<Date> {
type: 'date';
}
interface NumericFacetRange extends FacetRange<number> {
type: 'numeric';
} |