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

Commit 3b960d5

Browse files
authored
fix: specify connection direction (#86)
The comment says it can be 'inbound' or 'outbound' so constrain the type to those values.
1 parent 2429e72 commit 3b960d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const connectionSymbol = Symbol.for('@libp2p/interface-connection/connection')
1919
* @property {number} [close]
2020
*
2121
* @typedef {Object} ConectionStat
22-
* @property {string} direction - connection establishment direction ("inbound" or "outbound").
22+
* @property {'inbound' | 'outbound'} direction - connection establishment direction
2323
* @property {Timeline} timeline - connection relevant events timestamp.
2424
* @property {string} [multiplexer] - connection multiplexing identifier.
2525
* @property {string} [encryption] - connection encryption method identifier.

0 commit comments

Comments
 (0)