diff --git a/src-tauri/src/utils/types.rs b/src-tauri/src/utils/types.rs new file mode 100644 index 0000000..5b84d87 --- /dev/null +++ b/src-tauri/src/utils/types.rs @@ -0,0 +1,23 @@ +#[derive(Deserialize, Serialize)] +struct HistoryItem { + id: String, + content_type: ContentType, + content: String, + favicon: String, + timestamp: DATETIME, +} + +#[derive(Deserialize, Serialize)] +struct Settings { + key: String, + value: String, +} + +enum ContentType { + TEXT, + IMAGE, + FILE, + LINK, + COLOR, + CODE, +} diff --git a/types/types.ts b/types/types.ts new file mode 100644 index 0000000..f923c37 --- /dev/null +++ b/types/types.ts @@ -0,0 +1,21 @@ +export interface HistoryItem { + id: string; + content_type: ContentType; + content: string; + favicon: string; + timestamp: Date; +} + +export interface Settings { + key: string; + value: string; +} + +export enum ContentType { + TEXT, + IMAGE, + FILE, + LINK, + COLOR, + CODE, +}