Fix (most) slow types by adding explicit return types

This commit is contained in:
Alex Gleason
2024-03-06 11:47:50 -06:00
committed by fiatjaf_
parent 63ccc8b4c8
commit 9c0ade1329
12 changed files with 38 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ export class Relay extends AbstractRelay {
super(url, { verifyEvent })
}
static async connect(url: string) {
static async connect(url: string): Promise<Relay> {
const relay = new Relay(url)
await relay.connect()
return relay