UNPKG

@empathyco/x-components

Version:
97 lines (43 loc) 1.53 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 <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [cancelFetchAndSaveRecommendations](./x-components.recommendationsactions.cancelfetchandsaverecommendations.md) </td><td> </td><td> () =&gt; void </td><td> Cancels / interrupt [RecommendationsActions.fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) synchronous promise. </td></tr> <tr><td> [fetchAndSaveRecommendations](./x-components.recommendationsactions.fetchandsaverecommendations.md) </td><td> </td><td> (request: RecommendationsRequest \| null) =&gt; void </td><td> Requests and saves to the state a list of recommendations. </td></tr> <tr><td> [fetchRecommendations](./x-components.recommendationsactions.fetchrecommendations.md) </td><td> </td><td> (request: RecommendationsRequest \| null) =&gt; Result\[\] </td><td> Requests and returns a list of recommendations based on the module state. </td></tr> </tbody></table>