-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
31 lines (25 loc) · 683 Bytes
/
types.ts
File metadata and controls
31 lines (25 loc) · 683 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
export type Tab = 'timer' | 'sequence' | 'stopwatch' | 'settings';
export type SoundId = 'classic' | 'ethereal' | 'cosmic' | 'zen' | 'digital';
export interface SoundPreset {
id: SoundId;
name: string;
description: string;
}
export interface TimerState {
isActive: boolean;
isPaused: boolean;
duration: number; // Total duration in seconds
timeLeft: number; // Remaining time in seconds
initialDuration: number; // For reset
}
export interface Lap {
id: number;
time: number; // milliseconds
lapTime: number; // milliseconds
}
export interface StopwatchState {
isActive: boolean;
startTime: number;
elapsed: number; // milliseconds
laps: Lap[];
}