wip: implement add bookmark

This commit is contained in:
2025-05-07 23:09:14 +01:00
parent 9f00c9bb29
commit d3638ffc80
16 changed files with 409 additions and 38 deletions

View File

@@ -5,6 +5,7 @@ interface LinkBookmark {
id: string
title: string
url: string
tags: BookmarkTag[]
}
interface PlaceholderBookmark {
@@ -12,7 +13,12 @@ interface PlaceholderBookmark {
kind: "placeholder"
}
interface BookmarkTag {
id: string
name: string
}
type Bookmark = LinkBookmark | PlaceholderBookmark
type BookmarkId = Bookmark["id"]
export type { Bookmark, BookmarkId, BookmarkKind, LinkBookmark }
export type { Bookmark, BookmarkId, BookmarkKind, LinkBookmark, BookmarkTag }