Skip to content

Commit

Permalink
fix: fix wrong type signature (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala authored Mar 11, 2021
1 parent f546e4b commit 47fdb2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Connection>}
Expand All @@ -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)
}

Expand Down

0 comments on commit 47fdb2a

Please sign in to comment.