2020-07-26 05:19:05 +08:00

31 lines
620 B
TypeScript

import { DeepPartial } from 'utility-types'
export interface QuizMetaInfo {
title: string
author: {
name: string
email: string
github: string
}
tsconfig: any
original_issues: number[]
recommended_solutions: number[]
tags: string
}
export type Difficulty = 'warm-up' | 'easy' | 'medium' | 'hard' | 'extreme' | 'pending'
export interface Quiz {
no: number
difficulty: Difficulty
path: string
readme: Record<string, string>
template: string
info: Record<string, DeepPartial<QuizMetaInfo>>
tests?: string
solutions?: {
code?: string
readme?: Record<string, string>
}
}