NostrEvent > Event.

This commit is contained in:
fiatjaf
2025-12-06 12:21:56 -03:00
parent ca36ae9530
commit 65412e5b85

View File

@@ -8,7 +8,7 @@ export interface Nostr {
/** Designates a verified event signature. */
export const verifiedSymbol = Symbol('verified')
export interface Event {
export type NostrEvent = {
kind: number
tags: string[][]
content: string
@@ -19,7 +19,7 @@ export interface Event {
[verifiedSymbol]?: boolean
}
export type NostrEvent = Event
export type Event = NostrEvent
export type EventTemplate = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at'>
export type UnsignedEvent = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey'>