Skip to content

Commit e9e4b73

Browse files
authored
docs: fix JSDOc for stop and create (#812) (#813)
1 parent d0a9fad commit e9e4b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class Libp2p extends EventEmitter {
242242
* Stop the libp2p node by closing its listeners and open connections
243243
*
244244
* @async
245-
* @returns {void}
245+
* @returns {Promise<void>}
246246
*/
247247
async stop () {
248248
log('libp2p is stopping')
@@ -601,7 +601,7 @@ class Libp2p extends EventEmitter {
601601
* instance if one is not provided in options.
602602
*
603603
* @param {object} options - Libp2p configuration options
604-
* @returns {Libp2p}
604+
* @returns {Promise<Libp2p>}
605605
*/
606606
Libp2p.create = async function create (options = {}) {
607607
if (options.peerId) {

0 commit comments

Comments
 (0)