diff --git a/src/index.ts b/src/index.ts index 0ade383..4520d7a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,12 +2,12 @@ export interface Transform { (source: Source): Source } -export type Source = AsyncIterable | Iterable - -export interface Sink> { +export interface Sink { (source: Source): R } +export type Source = AsyncIterable | Iterable + export interface Duplex> { source: Source sink: Sink