Zerotask/rust-jungle

View on GitHub
src/lib/lessonInterfaces.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
}