mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-16 03:48:51 +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,
|
setPrivateKey(key: string): void,
|
||||||
addRelay(url: string, opts?: RelayPolicy): Relay,
|
addRelay(url: string, opts?: RelayPolicy): Relay,
|
||||||
removeRelay(url:string):void,
|
removeRelay(url:string):void,
|
||||||
getRelayList():Relay[],
|
getRelayList():{url:string,policy:RelayPolicy}[],
|
||||||
relayChangePolicy():Relay,
|
relayChangePolicy():Relay,
|
||||||
sub(opts: SubscriptionOptions, id?: string): Subscription,
|
sub(opts: SubscriptionOptions, id?: string): Subscription,
|
||||||
publish(event: Event, cb: PoolPublishCallback): Promise<Event>,
|
publish(event: Event, cb: PoolPublishCallback): Promise<Event>,
|
||||||
|
|||||||
Reference in New Issue
Block a user