Skip to content

Commit

Permalink
docs(fix): fromNodeAddress take an object (#100)
Browse files Browse the repository at this point in the history
* Fix jsdoc for `fromNodeAddress`
* Update to detailed Object
  • Loading branch information
nijynot authored and jacobheun committed Sep 25, 2019
1 parent 3bcb6d2 commit 43cb934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Multiaddr.prototype.nodeAddress = function nodeAddress () {
/**
* Creates a Multiaddr from a node-friendly address object
*
* @param {String} addr
* @param {{family: String, address: String, port: Number}} addr
* @param {String} transport
* @returns {Multiaddr} multiaddr
* @throws {Error} Throws error if addr is not truthy
Expand Down

0 comments on commit 43cb934

Please sign in to comment.