@yext/search-headless
Version:
A library for powering UI components for Yext Search integrations
20 lines (19 loc) • 630 B
text/typescript
import { DisplayableFacet } from '@yext/search-core';
import { SelectableStaticFilter } from '../utils/selectableStaticFilter';
/**
* Maintains the current state of facets and filters in the application.
*
* @public
*/
export interface FiltersState {
/**
* The collection of possible static filters that can be applied to the
* search results and whether each of them is currently selected.
*/
static?: SelectableStaticFilter[],
/**
* The dynamic collection of facets that can be applied to filter the search
* results and whether each of them is currently selected.
*/
facets?: DisplayableFacet[]
}