From eb902bde1192e6b905c2c1b67d947623928189ef Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Thu, 11 Mar 2021 09:03:20 -0800 Subject: [PATCH] fix: fix wrong type signature --- src/network.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/network.js b/src/network.js index d6e82b2a..a0637259 100644 --- a/src/network.js +++ b/src/network.js @@ -240,7 +240,7 @@ class Network { /** * Connects to another peer * - * @param {PeerId|Multiaddr|Provider} peer + * @param {PeerId|Multiaddr} peer * @param {Object} [options] * @param {AbortSignal} [options.signal] * @returns {Promise} @@ -250,8 +250,6 @@ class Network { throw new Error('network isn\'t running') } - // TODO: Figure out inconsistency here. - // @ts-expect-error - dial does not expects Provider return this._libp2p.dial(peer, options) }