forked from coracle/flotilla
Use new collection pattern
This commit is contained in:
+13
-8
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user