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

Commit

Permalink
fix: specify connection direction (#86)
Browse files Browse the repository at this point in the history
The comment says it can be 'inbound' or 'outbound' so constrain the type to those values.
  • Loading branch information
achingbrain authored Mar 22, 2021
1 parent 2429e72 commit 3b960d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const connectionSymbol = Symbol.for('@libp2p/interface-connection/connection')
* @property {number} [close]
*
* @typedef {Object} ConectionStat
* @property {string} direction - connection establishment direction ("inbound" or "outbound").
* @property {'inbound' | 'outbound'} direction - connection establishment direction
* @property {Timeline} timeline - connection relevant events timestamp.
* @property {string} [multiplexer] - connection multiplexing identifier.
* @property {string} [encryption] - connection encryption method identifier.
Expand Down

0 comments on commit 3b960d5

Please sign in to comment.