Skip to content

Commit

Permalink
refactor: introduce course, panel and units types. Simplify builder
Browse files Browse the repository at this point in the history
  • Loading branch information
edeleastar committed Aug 11, 2023
1 parent 26d2efc commit 28444d2
Show file tree
Hide file tree
Showing 11 changed files with 340 additions and 355 deletions.
16 changes: 2 additions & 14 deletions cli/tutors-gen-lib/src/lo/course-builder.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
import { Lo } from "./lo-types";
import { Course } from "./lo-types";
import { LearningResource } from "../lr/lr-types";
export declare const courseBuilder: {
lo: Lo;
buildCompositeLo(lo: Lo, lr: LearningResource, level: number): Lo;
buildSimpleLo(lo: Lo, lr: LearningResource): Lo;
buildLo(lr: LearningResource, level: number, keyFileName?: string): Lo;
buildDefaultLo(lr: LearningResource, keyFileName?: string): Lo;
buildUnit(lo: Lo): void;
buildTalk(lo: Lo): void;
buildSide(lo: Lo): void;
buildPanelvideo(lo: Lo): void;
buildLab(lo: Lo, lr: LearningResource): Lo;
buildCourse(lr: LearningResource): void;
};
export declare function buildCourse(lr: LearningResource): Course;
288 changes: 143 additions & 145 deletions cli/tutors-gen-lib/src/lo/course-builder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 28444d2

Please sign in to comment.