UNPKG

@empathyco/x-components

Version:
23 lines (14 loc) 1.24 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RecommendationsActions](./x-components.recommendationsactions.md) ## RecommendationsActions interface Recommendations store actions. **Signature:** ```typescript export interface RecommendationsActions ``` ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [cancelFetchAndSaveRecommendations](./x-components.recommendationsactions.cancelfetchandsaverecommendations.md) | | () =&gt; void | Cancels / interrupt [RecommendationsActions.fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) synchronous promise. | | [fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) | | (request: RecommendationsRequest \| null) =&gt; void | Requests and saves to the state a list of recommendations. | | [fetchRecommendations](./x-components.recommendationsactions.fetchrecommendations.md) | | (request: RecommendationsRequest \| null) =&gt; Result\[\] | Requests and returns a list of recommendations based on the module state. |