fix typescript for net.peers()

This commit is contained in:
Andre Staltz 2024-01-15 18:14:02 +02:00
parent 7f5ef18bd7
commit 0ce68f2770
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@ We're not on npm yet. In your package.json, include this as
- [x] stage - [x] stage
- [x] stats.json - [x] stats.json
- [x] interpool glue - [x] interpool glue
- [ ] writing hubs to stats.json - [x] writing peers to stats.json
- [ ] ONLY writing hubs to stats.json
- [ ] firewall - [ ] firewall
- [ ] scheduler - [ ] scheduler

View File

@ -117,6 +117,9 @@ class Infos {
return this.#map.entries() return this.#map.entries()
} }
/**
* @returns {pull.Source<[Address, Info]>}
*/
liveEntries() { liveEntries() {
return pullConcat([ return pullConcat([
pull.values([Array.from(this.#map.entries())]), pull.values([Array.from(this.#map.entries())]),