-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (30 loc) · 694 Bytes
/
Copy pathtypes.ts
File metadata and controls
34 lines (30 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export enum SupportedLanguage {
PYTHON = 'python',
JAVASCRIPT = 'javascript'
}
export enum CardType {
QA = '问答题',
BOOLEAN = '判断题',
CODE_PREDICT = '代码预测'
}
export interface Flashcard {
id: string;
type: CardType;
question: string;
answer: string;
explanation: string;
topic: string;
language: SupportedLanguage;
codeSnippet?: string; // Optional code block for the question
isMistake?: boolean; // Used for tracking if it's in the mistake bank
}
export enum AppMode {
LEARN = 'learn',
REVIEW_MISTAKES = 'review'
}
export interface LearningStats {
totalReviewed: number;
correctCount: number;
mistakeCount: number;
streak: number;
}