From f8f125270afffc365d41316a62cafac1192cea0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Ar=C3=A9jula=20A=C3=ADsa?= Date: Sat, 26 Nov 2022 14:47:56 +0100 Subject: [PATCH] fix return value getRelayList --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 11b7624..ac26130 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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,