First commit
This commit is contained in:
12
types/caseStudy.ts
Normal file
12
types/caseStudy.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { CourseLevel } from "./course";
|
||||
|
||||
export type CaseStudy = {
|
||||
slug: string;
|
||||
title: string;
|
||||
citation: string;
|
||||
year: number;
|
||||
summary: string;
|
||||
level: CourseLevel;
|
||||
topic: string;
|
||||
keyTerms: string[];
|
||||
};
|
||||
24
types/course.ts
Normal file
24
types/course.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export type CourseLevel = "Beginner" | "Intermediate" | "Advanced";
|
||||
export type LessonType = "video" | "reading" | "interactive";
|
||||
|
||||
export type Lesson = {
|
||||
id: string;
|
||||
title: string;
|
||||
type: LessonType;
|
||||
minutes: number;
|
||||
isPreview?: boolean;
|
||||
videoUrl?: string;
|
||||
};
|
||||
|
||||
export type Course = {
|
||||
slug: string;
|
||||
title: string;
|
||||
level: CourseLevel;
|
||||
summary: string;
|
||||
rating: number;
|
||||
weeks: number;
|
||||
lessonsCount: number;
|
||||
students: number;
|
||||
instructor: string;
|
||||
lessons: Lesson[];
|
||||
};
|
||||
14
types/practice.ts
Normal file
14
types/practice.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export type PracticeQuestion = {
|
||||
id: string;
|
||||
prompt: string;
|
||||
choices: string[];
|
||||
answerIndex: number;
|
||||
};
|
||||
|
||||
export type PracticeModule = {
|
||||
slug: string;
|
||||
title: string;
|
||||
description: string;
|
||||
isInteractive: boolean;
|
||||
questions?: PracticeQuestion[];
|
||||
};
|
||||
Reference in New Issue
Block a user