diff --git a/src/rpcNetwork.ts b/src/rpcNetwork.ts index 544160a..122414c 100644 --- a/src/rpcNetwork.ts +++ b/src/rpcNetwork.ts @@ -59,11 +59,11 @@ export default class RpcNetwork { return this._relays; } - private _ready: Promise; + private _ready?: Promise; get ready(): Promise { if (!this._ready) { - this._ready = this._dht.ready(); + this._ready = this._dht.ready() as Promise; } return this._ready; }