ENGLISH·COURSE API
    Preparing search index...

    Port: the courses a learner has enrolled in.

    Enrollment only adds — there is no leaving a course (capability course-enrollment) — so, like prize claims, the port offers a read and an idempotent write.

    interface CourseEnrollmentRepository {
        list(): Promise<ReadonlySet<string & $brand<"Slug">>>;
        enroll(courseSlug: string & $brand<"Slug">): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods