ENGLISH·COURSE API
    Preparing search index...
    • Marks the given lessons complete in the browser's own store.

      Parameters

      • lessons: readonly (
            | {
                kind: "reading";
                id: string & $brand<"LessonId">;
                courseId: string & $brand<"CourseId">;
                moduleId: string & $brand<"ModuleId">;
                sequence: number;
                title: string;
                body: string;
            }
            | {
                kind: "video";
                id: string & $brand<"LessonId">;
                courseId: string & $brand<"CourseId">;
                moduleId: string & $brand<"ModuleId">;
                sequence: number;
                title: string;
                description: string;
                source: string;
                durationSeconds: number;
                poster?: string;
                uploadDate?: string;
            }
        )[]

        The lessons to mark complete

      Returns void

      Shared by the drawer's tests and its stories: completion is the learner's, so the only way to show a part-finished course is to seed the learner store.