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) }