-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
37 lines (34 loc) · 744 Bytes
/
types.ts
File metadata and controls
37 lines (34 loc) · 744 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
35
36
37
export interface Bet {
id: string;
userId: string; // Link to user
name: string; // Keep name for display purposes
guessedTime: string; // Format "HH:MM"
timestamp: number;
}
export interface Result {
bet: Bet;
diffMinutes: number;
rank: number;
}
export interface User {
id: string;
name: string;
joinedAt: number;
stats: {
totalBets: number;
totalWins: number;
totalDiffMinutes: number; // For calculating average accuracy
history: {
date: string; // ISO date string
guessedTime: string;
actualTime: string;
diff: number;
won: boolean;
}[];
};
notificationsEnabled: boolean;
}
export interface AIAnalysisResponse {
commentary: string;
prediction: string;
}