implement edit bookmark dialog
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"module": "src/index.ts",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./bookmark": "./src/bookmark.ts",
|
||||
"./user": "./src/user.ts"
|
||||
},
|
||||
|
@@ -1,17 +1,15 @@
|
||||
type BookmarkKind = "link" | "placeholder"
|
||||
import type { Tag } from "./tag.ts"
|
||||
|
||||
interface Bookmark {
|
||||
id: string
|
||||
title: string
|
||||
url: string
|
||||
tags: BookmarkTag[]
|
||||
}
|
||||
|
||||
interface BookmarkTag {
|
||||
id: string
|
||||
name: string
|
||||
interface TaggedBookmark extends Bookmark {
|
||||
tags: Tag[]
|
||||
}
|
||||
|
||||
type BookmarkId = Bookmark["id"]
|
||||
|
||||
export type { Bookmark, BookmarkId, BookmarkKind, BookmarkTag }
|
||||
export type { Bookmark, TaggedBookmark, BookmarkId, Tag }
|
||||
|
3
packages/core/src/index.ts
Normal file
3
packages/core/src/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./bookmark.ts"
|
||||
export * from "./tag.ts"
|
||||
export * from "./user.ts"
|
6
packages/core/src/tag.ts
Normal file
6
packages/core/src/tag.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
interface Tag {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type { Tag }
|
Reference in New Issue
Block a user