27 lines
568 B
TypeScript
Executable File
27 lines
568 B
TypeScript
Executable File
export type CourseLevel = "Beginner" | "Intermediate" | "Advanced";
|
|
export type LessonType = "video" | "reading" | "interactive";
|
|
export type CourseStatus = "Draft" | "Published";
|
|
|
|
export type Lesson = {
|
|
id: string;
|
|
title: string;
|
|
type: LessonType;
|
|
minutes: number;
|
|
isPreview?: boolean;
|
|
videoUrl?: string;
|
|
};
|
|
|
|
export type Course = {
|
|
slug: string;
|
|
title: string;
|
|
level: CourseLevel;
|
|
status: CourseStatus;
|
|
summary: string;
|
|
rating: number;
|
|
weeks: number;
|
|
lessonsCount: number;
|
|
students: number;
|
|
instructor: string;
|
|
lessons: Lesson[];
|
|
};
|