src/lib/lessonInterfaces.ts
export interface LessonData {
url: string;
language: string;
stage: number;
index: number;
title: string;
summary?: string;
tags?: string[];
previous?: string;
next?: string;
furtherInformationUrls?: string[];
content: string;
}
export interface Stages {
[key: number]: string;
}
export interface Lessons {
tags: string[];
stages: Stages;
lessons: LessonData[];
}
export interface LastLesson {
stage: number;
index: number;
title: string;
url: string;
date: Date;
}