mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
31 lines
651 B
TypeScript
31 lines
651 B
TypeScript
import { DeepPartial } from 'utility-types'
|
|
|
|
export interface QuizMetaInfo {
|
|
title: string
|
|
author: {
|
|
name: string
|
|
email: string
|
|
github: string
|
|
}
|
|
tsconfig?: Record<string, 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> | undefined>
|
|
tests?: string
|
|
solutions?: {
|
|
code?: string
|
|
readme?: Record<string, string>
|
|
}
|
|
}
|