UNPKG

@empathyco/x-components

Version:
97 lines (43 loc) 1.48 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 <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> () =&gt; 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) =&gt; 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) =&gt; Suggestion\[\] </td><td> Fetches a new set of suggestions and returns them. </td></tr> </tbody></table>