@libp2p/multistream-select
Advanced tools
Comparing version
@@ -5,4 +5,4 @@ import { PROTOCOL_ID } from './constants.js'; | ||
export { PROTOCOL_ID }; | ||
export interface ProtocolStream<TSource, TSink = TSource> { | ||
stream: Duplex<AsyncGenerator<TSource>, Source<TSink>>; | ||
export interface ProtocolStream<TSource, TSink = TSource, RSink = Promise<void>> { | ||
stream: Duplex<AsyncGenerator<TSource>, Source<TSink>, RSink>; | ||
protocol: string; | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "@libp2p/multistream-select", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"description": "JavaScript implementation of multistream-select", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -7,4 +7,4 @@ import { PROTOCOL_ID } from './constants.js' | ||
export interface ProtocolStream<TSource, TSink = TSource> { | ||
stream: Duplex<AsyncGenerator<TSource>, Source<TSink>> | ||
export interface ProtocolStream<TSource, TSink = TSource, RSink = Promise<void>> { | ||
stream: Duplex<AsyncGenerator<TSource>, Source<TSink>, RSink> | ||
protocol: string | ||
@@ -11,0 +11,0 @@ } |
Sorry, the diff of this file is not supported yet
95396
0.11%