switch to monorepo structure
This commit is contained in:
18
packages/core/src/bookmark.ts
Normal file
18
packages/core/src/bookmark.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
type BookmarkKind = "link" | "placeholder"
|
||||
|
||||
interface LinkBookmark {
|
||||
kind: "link"
|
||||
id: string
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
|
||||
interface PlaceholderBookmark {
|
||||
id: string
|
||||
kind: "placeholder"
|
||||
}
|
||||
|
||||
type Bookmark = LinkBookmark | PlaceholderBookmark
|
||||
type BookmarkId = Bookmark["id"]
|
||||
|
||||
export type { Bookmark, BookmarkId, BookmarkKind, LinkBookmark }
|
13
packages/core/src/user.ts
Normal file
13
packages/core/src/user.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
interface User {
|
||||
id: string
|
||||
username: string
|
||||
}
|
||||
|
||||
const DEMO_USER = {
|
||||
id: "01JTEP7T7A5YTM8YXEKHYQ46KK",
|
||||
username: "demo-user",
|
||||
unhashedPassword: "secure-hunter2",
|
||||
} as const
|
||||
|
||||
export type { User }
|
||||
export { DEMO_USER }
|
Reference in New Issue
Block a user