Remove generics for event type
This commit is contained in:
@@ -5,10 +5,13 @@ import {Tags} from './Tags'
|
||||
import {getAddress} from './Address'
|
||||
import {isEphemeralKind, isReplaceableKind, isPlainReplaceableKind, isParameterizedReplaceableKind} from './Kinds'
|
||||
|
||||
export type EventTemplate = {
|
||||
kind: number
|
||||
export type EventContent = {
|
||||
tags: string[][]
|
||||
content: string
|
||||
}
|
||||
|
||||
export type EventTemplate = EventContent & {
|
||||
kind: number
|
||||
created_at: number
|
||||
}
|
||||
|
||||
@@ -35,6 +38,8 @@ export type TrustedEvent = HashedEvent & {
|
||||
[verifiedSymbol]?: boolean
|
||||
}
|
||||
|
||||
export type ExtensibleTrustedEvent = TrustedEvent & Record<string, any>
|
||||
|
||||
export type CreateEventOpts = {
|
||||
content?: string
|
||||
tags?: string[][]
|
||||
|
||||
Reference in New Issue
Block a user