From 47fdb2a8f8fc6142e9879869402401a65b04cb0a Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Thu, 11 Mar 2021 11:42:31 -0800 Subject: [PATCH] fix: fix wrong type signature (#304) --- 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) }