LearningElementRecommendationSlice: {
    _learningElementRecommendationCache: Record<string, LearningElementRecommendation>;
    clearLearningElementRecommendationCache: ((courseId, topicId) => void);
    getLearningElementRecommendation: LearningElementRecommendationReturn;
}

Type for the LearningElementRecommendationSlice slice of the store.

Type declaration

  • _learningElementRecommendationCache: Record<string, LearningElementRecommendation>

    The cache for current learning element recommendations.

  • clearLearningElementRecommendationCache: ((courseId, topicId) => void)
      • (courseId, topicId): void
      • Clears the learning element recommendation cache for a course and topic.

        Parameters

        • courseId: string
        • topicId: string

        Returns void

  • getLearningElementRecommendation: LearningElementRecommendationReturn

    Retrieves the learning element recommendations for a user, course, and topic from the cache or backend.

Generated using TypeDoc