Make createEvent params optional, bump nostr-editor

This commit is contained in:
Jon Staab
2025-01-30 16:51:52 -08:00
parent 369a89dc60
commit 45d3311602
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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 =>