Use new collection pattern

This commit is contained in:
Jon Staab
2024-08-13 12:41:25 -07:00
parent 71d819edc7
commit 85fb09fc5f
12 changed files with 456 additions and 337 deletions
+13 -8
View File
@@ -1,4 +1,7 @@
import {verifiedSymbol} from 'nostr-tools'
import type {Nip46Handler} from "@welshman/signer"
import type {SignedEvent, TrustedEvent} from "@welshman/util"
import type {RelayProfile, Handle as HandleInfo} from "@welshman/domain"
export type Session = {
method: string
@@ -7,14 +10,16 @@ export type Session = {
handler?: Nip46Handler
}
export type RelayInfo = {
fetched_at: number
export type Relay = RelayProfile & {
fetched_at: number,
}
export type HandleInfo = {
pubkey: string
nip05: string
nip46: string[]
relays: string[]
fetched_at: number
export type Handle = HandleInfo & {
fetched_at: number,
}
declare module '@welshman/util' {
interface CustomEvent extends TrustedEvent {
fetched_at: number
}
}