ENGLISH·COURSE API
    Preparing search index...

    Variable

    enrollInCourseActionConst

    enrollInCourseAction: SafeActionFn<
        string,
        ZodObject<{ courseSlug: $ZodBranded<ZodString, "Slug", "out"> }, $strip>,
        readonly [],
        {} & { courseSlug?: {} },
        { enrolled: boolean },
    > = ...

    Enrolls the signed-in learner in a course the catalog serves; answers { enrolled: false } for any other slug.