mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
NostrEvent > Event.
This commit is contained in:
4
core.ts
4
core.ts
@@ -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'>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user