Express TS project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 regels
476 B

  1. export type Question = {
  2. type: 'INPUT' | 'MCQ',
  3. text: string,
  4. choices?: Array<string>,
  5. correctAnswer?: string,
  6. durationInSeconds: number,
  7. marks: number,
  8. }
  9. export type Quiz = {
  10. questions: Array<Question>,
  11. minScoreToPass: number,
  12. totalDuration?: number, // Military time 060 is 6 AM, 1300 is 1 PM
  13. }
  14. export type Assignment = {
  15. heading: string,
  16. description: string, //Rich text
  17. deadlineDate: string,
  18. minimumCriteria: string,
  19. }