Download src/types.ts from Musabek/BilimWay: direct link, hf CLI and curl.
- Browser
- Download file 2.06 kB
-
https://huggingface.co/spaces/Musabek/BilimWay/resolve/main/src/types.ts
- Command line
-
hf download hf://spaces/Musabek/BilimWay/src/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/Musabek/BilimWay/resolve/main/src/types.ts
2.06 kB
| export type Language = 'en' | 'ru' | 'es' | 'ar' | 'ko' | 'ja' | 'uz'; | |
| export type UserLevel = 'beginner' | 'normal' | 'pro' | 'ultra'; | |
| export interface UserProfile { | |
| name: string; | |
| hp: number; | |
| level: number; | |
| chosenLanguage?: Language; | |
| unlockedLessons: string[]; // List of lesson IDs | |
| completedLessons: string[]; // List of lesson IDs | |
| failedHomeworkLessons: { [lessonId: string]: boolean }; | |
| customHomeworks: { [lessonId: string]: string }; // Custom alternative homework if grade < 4 | |
| highScores: { | |
| game1: number; // max vertical level in Path & Star | |
| game2: number; // words found in grid | |
| game3: number; // speaking correct words | |
| duels: number; // duels won | |
| }; | |
| savedTopics?: string[]; // List of custom studied topics | |
| email?: string; | |
| photoURL?: string; | |
| subscription?: 'free' | 'pro' | 'ultimate'; | |
| lastAiTopicAskedAt?: number; | |
| learnedWords?: string[]; // List of Uzbek words learned this week so they don't repeat | |
| vocabHistory?: string[]; // English words already introduced to prevent repetition | |
| vocabLoginDays?: string[]; // List of calendar dates (YYYY-MM-DD) when vocab was checked | |
| vocabGeneratedDays?: { [dayName: string]: { theme: string; words: any[] } }; // Daily AI words | |
| } | |
| export interface Question { | |
| sentence: string; | |
| options: string[]; | |
| correctOption: number; | |
| } | |
| export interface Exercise { | |
| title: string; | |
| questions: Question[]; | |
| } | |
| export interface LessonData { | |
| explanation: string; | |
| exercises: Exercise[]; | |
| homework: string; | |
| } | |
| export interface Lesson { | |
| id: string; | |
| title: string; | |
| topic: string; | |
| level: 'beginner' | 'normal' | 'pro'; | |
| hpReward: number; | |
| data?: LessonData; | |
| } | |
| export type ChessPieceColor = 'w' | 'b'; | |
| export type ChessPieceType = 'p' | 'r' | 'n' | 'b' | 'q' | 'k'; | |
| export interface ChessPiece { | |
| type: ChessPieceType; | |
| color: ChessPieceColor; | |
| id: string; // for key tracking | |
| } | |
| export type BoardState = (ChessPiece | null)[][]; | |
| export interface DuelQuestion { | |
| question: string; | |
| options: string[]; | |
| correctIndex: number; | |
| explanation: string; | |
| } | |