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