fix return value getRelayList

This commit is contained in:
Íñigo Aréjula Aísa
2022-11-26 14:47:56 +01:00
committed by fiatjaf
parent 1b798b2eee
commit f8f125270a

2
index.d.ts vendored
View File

@@ -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>,