@empathyco/x-components
Version:
Empathy X Components
97 lines (43 loc) • 1.48 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [PopularSearchesActions](./x-components.popularsearchesactions.md)
## PopularSearchesActions interface
Popular searches module actions.
**Signature:**
```typescript
export interface PopularSearchesActions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[cancelFetchAndSaveSuggestions](./x-components.popularsearchesactions.cancelfetchandsavesuggestions.md)
</td><td>
</td><td>
() => void
</td><td>
Cancels / interrupt [PopularSearchesActions.fetchAndSaveSuggestions](./x-components.popularsearchesactions.fetchandsavesuggestions.md) synchronous promise.
</td></tr>
<tr><td>
[fetchAndSaveSuggestions](./x-components.popularsearchesactions.fetchandsavesuggestions.md)
</td><td>
</td><td>
(request: PopularSearchesRequest) => void
</td><td>
Fetches a new set of suggestions and stores them in the module state.
</td></tr>
<tr><td>
[fetchSuggestions](./x-components.popularsearchesactions.fetchsuggestions.md)
</td><td>
</td><td>
(request: PopularSearchesRequest) => Suggestion\[\]
</td><td>
Fetches a new set of suggestions and returns them.
</td></tr>
</tbody></table>