types.ts 292 B

123456789101112131415161718
  1. export interface CommitRecord {
  2. commitDate: string
  3. score: number
  4. id: number
  5. }
  6. export interface Question {
  7. id: number
  8. description: string
  9. options: Option[]
  10. type: 'choice' | 'trueOrFalse'
  11. multiple: boolean
  12. }
  13. interface Option {
  14. label: string | number
  15. description: string
  16. }