Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit d43c236

Browse files
author
Alan Shaw
authored
docs: fix swarm addrs return type (#2960)
1 parent 69c091d commit d43c236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core-api/SWARM.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
| Type | Description |
2020
| -------- | -------- |
21-
| `Promise<{ id: String, addrs: Multiaddr[] }>` | A promise that resolves to an object with `id` and `addrs`. `id` is a String - the peer's ID and `addrs` is an array of [Multiaddr](https://github.com/multiformats/js-multiaddr/) - addresses for the peer. |
21+
| `Promise<Array<{ id: String, addrs: Multiaddr[] }>>` | A promise that resolves to an array of objects with `id` and `addrs`. `id` is a String - the peer's ID and `addrs` is an array of [Multiaddr](https://github.com/multiformats/js-multiaddr/) - addresses for the peer. |
2222

2323
**Example:**
2424

0 commit comments

Comments
 (0)