Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Feat/add types 2 #75

Merged
merged 5 commits into from
Dec 2, 2020
Merged

Feat/add types 2 #75

merged 5 commits into from
Dec 2, 2020

Conversation

Gozala
Copy link

@Gozala Gozala commented Dec 2, 2020

I end up fixing bunch of issues that were appearing in #74 when type-checking with new aegir.

@Gozala Gozala requested a review from vasco-santos December 2, 2020 00:33
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good!
I am merging it into the other PR to test it against libp2p and fix the connection status + pubsub stream in there

@@ -1,7 +1,12 @@
'use strict'

module.exports = {
const STATUS = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be causing issues integrating with libp2p PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Property 'OPEN' does not exist on type 'typeof import("/Users/vsantos/work/pl/gh/libp2p/js-libp2p-interfaces/dist/src/connection/status")'"

Using:

const ConnectionStatus = require('libp2p-interfaces/src/connection/status')

ConnectionStatus.OPEN

@@ -243,6 +243,7 @@ class PubsubBaseProtocol extends EventEmitter {
try {
const { stream, protocol } = await conn.newStream(this.multicodecs)
const peer = this._addPeer(peerId, protocol)
// @ts-ignore MuxedStream is not DuplexIterableStream
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address this after merging. This should really be using the muxedStream

@vasco-santos vasco-santos merged commit 67a5f51 into feat/add-types Dec 2, 2020
@vasco-santos vasco-santos deleted the feat/add-types-2 branch December 2, 2020 09:33
@vasco-santos vasco-santos mentioned this pull request Dec 2, 2020
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants