mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 16:32:32 +00:00
fix: missing type imports
This commit is contained in:
parent
7ccaf27e24
commit
f2d6a76dcf
@ -124,6 +124,7 @@ class MulticodecTopology extends Topology {
|
||||
* @returns {void}
|
||||
*/
|
||||
_onPeerConnect (connection) {
|
||||
// @ts-ignore - remotePeer does not existist on Connection
|
||||
const peerId = connection.remotePeer
|
||||
const protocols = this._registrar.peerStore.protoBook.get(peerId)
|
||||
|
||||
@ -138,4 +139,9 @@ class MulticodecTopology extends Topology {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef {import('peer-id')} PeerId
|
||||
* @typedef {import('multiaddr')} Multiaddr
|
||||
* @typedef {import('../connection')} Connection
|
||||
*/
|
||||
module.exports = MulticodecTopology
|
||||
|
Loading…
x
Reference in New Issue
Block a user