-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
63 lines (56 loc) · 1.25 KB
/
types.ts
File metadata and controls
63 lines (56 loc) · 1.25 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export type AgeRange = 'child' | 'teen' | 'adult' | 'senior';
export interface LearningProfile {
visualPreference: number;
handsOnPreference: number;
stepByStepPreference: number;
verbalPreference: number;
needForRepetition: boolean;
needWhyExplanations: boolean;
sensoryPreference: 'silence' | 'minimal_text' | 'simple_layout' | 'standard';
ageRange: AgeRange;
useAccessibleFont?: boolean;
increasedSpacing?: boolean;
}
export interface Flashcard {
front: string;
back: string;
}
export interface StudyGuideStep {
step: string;
explanation: string;
whyItMatters: string;
}
export interface StudyGuideContent {
summary: string;
visualBreakdown: string;
diagramCode: string;
steps: StudyGuideStep[];
handsOnPractice: string[];
memoryAnchors: string[];
flashcards: Flashcard[];
pepTalk: string;
youtubeLink?: string;
}
export interface StudyGuide {
id: string;
topic: string;
content: StudyGuideContent;
createdAt: number;
}
export interface Achievement {
id: string;
title: string;
description: string;
unlocked: boolean;
icon: string;
}
export type ViewState =
| 'HOME'
| 'QUIZ'
| 'RESULTS'
| 'TOPIC_SELECTOR'
| 'STUDY_GUIDE'
| 'FLASHCARDS'
| 'PROFILE'
| 'INVESTOR'
| 'PROGRESS';