import { Facet } from './facet.model' ; import { HierarchicalFilter } from './filter/hierarchical-filter.model' ; /**
 * Hierarchical facet is a trait for filtering results. It extends from  Facet changes the
 * modelName and uses  HierarchicalFilter as filters.
  export interface HierarchicalFacet extends Facet { /** Model name to indicate the facet type. */ modelName : 'HierarchicalFacet' ; /** Filters available for the facet. */ filters : HierarchicalFilter [ ] ; } /**
 * Type guard to check if a facet is an  HierarchicalFacet .
 *
 *  param facet returns True if the facet is a  HierarchicalFacet , false otherwise.
 *
 *  public export function isHierarchicalFacet ( facet ) { return facet . modelName === 'HierarchicalFacet' ; }