learn-content-engine - v0.13.1
    Preparing search index...

    Interface ExerciseExtension

    The engine-side implementation of one ext: exercise type.

    type is the full namespaced id (e.g. ext:acme-ordering); major is the major version this implementation supports, matched against the @<major> a lesson pins in requires_extensions.

    interface ExerciseExtension {
        major: number;
        type: string;
        resolve?(lesson: ContentLesson): ContentLesson;
        validate(exercise: Exercise): ValidationIssue[];
    }
    Index
    major: number

    Major version supported; matched against the lesson's @<major> pin.

    type: string

    The ext type this handles, e.g. ext:acme-ordering.