diff --git a/src/index.ts b/src/index.ts index b9512a3..3ab7012 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ export interface Transform { * function that takes a source and iterates over it. It optionally returns * a value. */ -export interface Sink> { +export interface Sink { (source: Source): R } @@ -32,7 +32,7 @@ export type Source = AsyncIterable | Iterable * necessarily connected to the values that can be consumed from it. It is * an object with two properties, sink and source. */ -export interface Duplex> { +export interface Duplex { source: TSource sink: Sink }