FrontEnd.ro logo
Nou feature pe FrontEnd.ro
import { ObjectId } from "mongoose";

export interface LessonI {
  _id?: ObjectId;

  lessonId: string;

  views?: number;
}
import { PopulatedDoc } from 'mongoose';

export enum ExerciseType {
  HTML = 'html',
  CSS = 'css',
  JS = 'js',
}

export interface ExerciseI {
  _id: string;

  user: PopulatedDoc<UserI>;

  type: ExerciseType;

  tags: string[];

  body: string;

  example?: string;

  solution: string;

  private: boolean;

  suggestion?: string;
}