From f2d6a76dcfaa71f7b4406b5cb16439d9e1ceda71 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Mon, 30 Nov 2020 16:53:39 -0800 Subject: [PATCH] fix: missing type imports --- src/topology/multicodec-topology.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/topology/multicodec-topology.js b/src/topology/multicodec-topology.js index 52ddef4..1dd42ae 100644 --- a/src/topology/multicodec-topology.js +++ b/src/topology/multicodec-topology.js @@ -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