Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
chore: update interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 7, 2021
1 parent 7371423 commit 64a90ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"aegir": "^32.1.0",
"it-pair": "^1.0.0",
"it-pipe": "^1.1.0",
"libp2p-interfaces": "libp2p/js-libp2p-interfaces#chore/update-types",
"libp2p-interfaces": "^0.9.0",
"streaming-iterables": "^5.0.3",
"util": "^0.12.3"
},
Expand Down
3 changes: 1 addition & 2 deletions src/stream-to-ma-conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const log = debug('libp2p:stream:converter')

/**
* @typedef {import('multiaddr')} Multiaddr
* @typedef {import('libp2p-interfaces/src/transport/types').MultiaddrConnection} MultiaddrConnection
* @typedef {import('libp2p-interfaces/src/stream-muxer/types').MuxedStream} MuxedStream
*
* @typedef {Object} Timeline
Expand All @@ -25,7 +24,7 @@ const log = debug('libp2p:stream:converter')
* @param {Multiaddr} streamProperties.localAddr
* @param {object} [options]
* @param {AbortSignal} [options.signal]
* @returns {MultiaddrConnection}
* @returns {import('libp2p-interfaces/src/transport/types').MultiaddrConnection}
*/
function streamToMaConnection ({ stream, remoteAddr, localAddr }, options = {}) {
const { sink, source } = stream
Expand Down

0 comments on commit 64a90ee

Please sign in to comment.