UNPKG

@yext/search-headless

Version:

A library for powering UI components for Yext Search integrations

26 lines (25 loc) 671 B
import { UniversalLimit, VerticalResults } from '@yext/search-core'; /** * Maintains the data for the latest universal search. * * @public */ export interface UniversalSearchState { /** * An object defining the limit (up to how many results should be returned) for * each vertical. */ limit?: UniversalLimit, /** * The results from each vertical included in the universal search. */ verticals?: VerticalResults[], /** * If included, the verticals to which the universal search should be restricted. */ restrictVerticals?: string[], /** * The maximum number of autocomplete results to return. */ autocompleteLimit?: number }