Skip to content

Commit a9e9703

Browse files
docs: improve jsdoc syntax for better generated docs
1 parent 55e96f1 commit a9e9703

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ const DecisionEngine = require('./decision-engine')
1313
const Notifications = require('./notifications')
1414
const logger = require('./utils').logger
1515

16+
/**
17+
* JavaScript implementation of the Bitswap 'data exchange' protocol
18+
* used by IPFS.
19+
*
20+
* @param {Libp2p} libp2p
21+
* @param {Blockstore} blockstore
22+
*/
1623
class Bitswap {
17-
/**
18-
* Create a new bitswap instance.
19-
*
20-
* @param {Libp2p} libp2p
21-
* @param {Blockstore} blockstore
22-
* @returns {Bitswap}
23-
*/
2424
constructor (libp2p, blockstore) {
2525
this._libp2p = libp2p
2626
this._log = logger(this.peerInfo.id)

src/notifications.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const blockEvent = (c) => `block:${c}`
1111
/**
1212
* Internal module used to track events about incoming blocks,
1313
* wants and unwants.
14+
*
15+
* @param {PeerId} peerId
16+
* @private
1417
*/
1518
class Notifications extends EventEmitter {
1619
constructor (peerId) {

0 commit comments

Comments
 (0)