-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
39 lines (35 loc) · 796 Bytes
/
types.ts
File metadata and controls
39 lines (35 loc) · 796 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
38
39
export interface Bullet {
id: string;
text: string;
children: Bullet[];
isCollapsed: boolean;
isReadOnly?: boolean;
isFavorite?: boolean;
originalId?: string;
createdAt?: number;
updatedAt?: number;
}
export interface FlatBullet {
id: string;
text: string;
path: string[];
createdAt?: number;
updatedAt?: number;
}
export interface Settings {
mainColor: string;
fileName: string;
fontFamily: string;
fontSize: number;
}
// A type representing the core data of a bullet, excluding UI state like 'isCollapsed' or 'isReadOnly'.
// This ensures that only essential data is persisted.
export type CoreBullet = {
id: string;
text: string;
children: CoreBullet[];
isFavorite?: boolean;
originalId?: string;
createdAt?: number;
updatedAt?: number;
};