mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
fix return value getRelayList
This commit is contained in:
committed by
fiatjaf
parent
1b798b2eee
commit
f8f125270a
2
index.d.ts
vendored
2
index.d.ts
vendored
@@ -93,7 +93,7 @@ declare type RelayPool = {
|
||||
setPrivateKey(key: string): void,
|
||||
addRelay(url: string, opts?: RelayPolicy): Relay,
|
||||
removeRelay(url:string):void,
|
||||
getRelayList():Relay[],
|
||||
getRelayList():{url:string,policy:RelayPolicy}[],
|
||||
relayChangePolicy():Relay,
|
||||
sub(opts: SubscriptionOptions, id?: string): Subscription,
|
||||
publish(event: Event, cb: PoolPublishCallback): Promise<Event>,
|
||||
|
||||
Reference in New Issue
Block a user