it-stream-types
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
export interface Sink<Source, R = Promise<void>> { | ||
export interface Sink<Source, R = unknown> { | ||
(source: Source): R; | ||
@@ -33,3 +33,3 @@ } | ||
*/ | ||
export interface Duplex<TSource = unknown, TSink = TSource, RSink = Promise<void>> { | ||
export interface Duplex<TSource = unknown, TSink = TSource, RSink = unknown> { | ||
source: TSource; | ||
@@ -36,0 +36,0 @@ sink: Sink<TSink, RSink>; |
{ | ||
"name": "it-stream-types", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Typescript types for AsyncIterable sink/source/duplex streams", | ||
@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>", |
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
export interface Sink<Source, R = Promise<void>> { | ||
export interface Sink<Source, R = unknown> { | ||
(source: Source): R | ||
@@ -36,5 +36,5 @@ } | ||
*/ | ||
export interface Duplex<TSource = unknown, TSink = TSource, RSink = Promise<void>> { | ||
export interface Duplex<TSource = unknown, TSink = TSource, RSink = unknown> { | ||
source: TSource | ||
sink: Sink<TSink, RSink> | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9023