import { BooleanFilterModelName , BooleanFilterModelNames } from '../../named-model.model' ; import { FacetFilter } from './facet-filter.model' ; import { Filter } from './filter.model' ; /**
 * A boolean filter used in a  FacetFilter , which status can be selected or not and
 * it may contains the total results number that the filter should return.
 *
 *  remarks public export interface BooleanFilter extends FacetFilter { /** Text to render the filter label. */ label : string ; /** Type to narrow  ModelNameType from the extended Filter for the known subtypes.  modelName : BooleanFilterModelName ; /** Amount of matching results. */ totalResults ? : number ; } /**
 * Type guard to check if a filter is a  BooleanFilter .
 *
 *  param filter returns True if the filter is a  BooleanFilter , false otherwise.
 *
 *  public export function isBooleanFilter ( filter ) { return BooleanFilterModelNames . includes ( filter . modelName as BooleanFilterModelName ) ; }