-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
49 lines (45 loc) · 915 Bytes
/
types.ts
File metadata and controls
49 lines (45 loc) · 915 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
40
41
42
43
44
45
46
47
48
49
export interface Note {
id: string;
title: string;
content: string;
tags: string[];
isFavorite: boolean;
createdAt: number;
updatedAt: number;
x: number;
y: number;
links: string[];
}
export interface Project {
id: string;
name: string;
description: string;
createdAt: number;
updatedAt: number;
noteCount: number; // Cached count for display
}
export interface ProjectExportData {
version: number;
timestamp: number;
project: Project;
notes: Note[];
}
export enum ViewMode {
EDIT = 'EDIT',
PREVIEW = 'PREVIEW',
SPLIT = 'SPLIT',
GRAPH = 'GRAPH'
}
// Helper for Lucide icons since we are loading via script tag but using TS
// In a real build environment we would import from 'lucide-react'
declare global {
interface Window {
lucide: {
createIcons: () => void;
icons: any;
};
marked: {
parse: (text: string) => string;
};
}
}