UNPKG

@empathyco/x-components

Version:
23 lines (14 loc) 1.18 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [PopularSearchesActions](./x-components.popularsearchesactions.md) ## PopularSearchesActions interface Popular searches module actions. **Signature:** ```typescript export interface PopularSearchesActions ``` ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [cancelFetchAndSaveSuggestions](./x-components.popularsearchesactions.cancelfetchandsavesuggestions.md) | | () =&gt; void | Cancels / interrupt [PopularSearchesActions.fetchAndSaveSuggestions](./x-components.popularsearchesactions.fetchandsavesuggestions.md) synchronous promise. | | [fetchAndSaveSuggestions](./x-components.popularsearchesactions.fetchandsavesuggestions.md) | | (request: PopularSearchesRequest) =&gt; void | Fetches a new set of suggestions and stores them in the module state. | | [fetchSuggestions](./x-components.popularsearchesactions.fetchsuggestions.md) | | (request: PopularSearchesRequest) =&gt; Suggestion\[\] | Fetches a new set of suggestions and returns them. |