@empathyco/x-components
Version:
Empathy X Components
26 lines • 962 B
TypeScript
import type { RecommendationsRequest, Result } from '@empathyco/x-types';
/**
* Dictionary of the events of Recommendations XModule, where each key is the event name, and the
* value is the event payload type or `void` if it has no payload.
*
* @public
*/
export interface RecommendationsXEvents {
/**
* Recommendations have been changed.
* Payload: The new {@link @empathyco/x-types#Result | recommendations}.
*/
RecommendationsChanged: Result[];
/**
* Any property of the recommendations request has changed.
* Payload: The new recommendations request or `null` if there is not enough data in the state
* to conform a valid request.
*/
RecommendationsRequestUpdated: RecommendationsRequest;
/**
* A recommendation result has been clicked.
* Payload: The {@link @empathyco/x-types#Result | result}.
*/
UserClickedARecommendation: Result;
}
//# sourceMappingURL=events.types.d.ts.map