You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* deps!: update stream types
libp2p streams are now explicit about the types of sync/sources they provide, showing that they are
`AsyncGenerator`s and not just `AsyncIterable`s.
Refs: achingbrain/it-stream-types#45
BREAKING CHANGE: the type of the source/sink properties have changed
* fix: interop
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
---------
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
Co-authored-by: Marin Petrunic <marin.petrunic@gmail.com>
@@ -98,11 +98,11 @@ export class Noise implements INoiseConnection {
98
98
* Decrypt incoming data (handshake as responder).
99
99
*
100
100
* @param {PeerId} localPeer - PeerId of the receiving peer.
101
-
* @param {Duplex<Uint8Array>} connection - streaming iterable duplex that will be encryption.
101
+
* @param {Duplex<AsyncGenerator<Uint8Array>, AsyncIterable<Uint8Array>, Promise<void>>} connection - streaming iterable duplex that will be encryption.
102
102
* @param {PeerId} remotePeer - optional PeerId of the initiating peer, if known. This may only exist during transport upgrades.
0 commit comments