UNPKG

@empathyco/x-components

Version:
34 lines 832 B
/** * Configuration options for the popular searches module. * * @public */ export interface PopularSearchesConfig { /** * Number of popular searches to request. */ maxItemsToRequest: number; /** * Hides the popular searches that have been already searched during the session. * * @example * When set to true: * ``` * query = 'shorts'; * query = 'trousers'; * suggestions = ['t-shirt', 'shorts', 'dress'] * // Suggests ['t-shirt', 'dress'] * ``` * * @example * When set to false: * ``` * query = 'shorts'; * query = 'trousers'; * suggestions = ['t-shirt', 'shorts', 'dress'] * // Suggests ['t-shirt', 'shorts', 'dress'] * ``` */ hideSessionQueries: boolean; } //# sourceMappingURL=config.types.d.ts.map