ENGLISH·COURSE API
    Preparing search index...

    Variable

    loadCourseViewsConst

    loadCourseViews: () => Promise<CourseForView[]> = ...

    Every catalog course as the course overview sees it — modules, and lessons with their titles, durations and posters — in catalog order.

    Type Declaration

      • (): Promise<CourseForView[]>
      • Returns Promise<CourseForView[]>

    The learner pages compute each course's progress and next video on the client from this data, exactly as the course overview does, so they never need a round-trip to resolve where the learner is. Cached per request; a course that fails to load is left out rather than failing the page.