Make createEvent params optional, bump nostr-editor
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
"@tiptap/suggestion": "^2.9.1",
|
||||
"@welshman/lib": "~0.0.36",
|
||||
"@welshman/util": "~0.0.53",
|
||||
"nostr-editor": "^0.0.4-pre.7",
|
||||
"nostr-editor": "^0.0.4-pre.8",
|
||||
"nostr-tools": "^2.8.1",
|
||||
"svelte": "^4.0.0",
|
||||
"svelte-tiptap": "^1.0.0"
|
||||
|
||||
@@ -54,7 +54,7 @@ export type CreateEventOpts = {
|
||||
|
||||
export const createEvent = (
|
||||
kind: number,
|
||||
{content = "", tags = [], created_at = now()}: CreateEventOpts,
|
||||
{content = "", tags = [], created_at = now()}: CreateEventOpts = {},
|
||||
) => ({kind, content, tags, created_at})
|
||||
|
||||
export const isEventTemplate = (e: EventTemplate): e is EventTemplate =>
|
||||
|
||||
Reference in New Issue
Block a user