mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-13 02:18:51 +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. */
|
/** Designates a verified event signature. */
|
||||||
export const verifiedSymbol = Symbol('verified')
|
export const verifiedSymbol = Symbol('verified')
|
||||||
|
|
||||||
export interface Event {
|
export type NostrEvent = {
|
||||||
kind: number
|
kind: number
|
||||||
tags: string[][]
|
tags: string[][]
|
||||||
content: string
|
content: string
|
||||||
@@ -19,7 +19,7 @@ export interface Event {
|
|||||||
[verifiedSymbol]?: boolean
|
[verifiedSymbol]?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NostrEvent = Event
|
export type Event = NostrEvent
|
||||||
export type EventTemplate = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at'>
|
export type EventTemplate = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at'>
|
||||||
export type UnsignedEvent = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey'>
|
export type UnsignedEvent = Pick<Event, 'kind' | 'tags' | 'content' | 'created_at' | 'pubkey'>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user