diff --git a/types/highland/highland-tests.ts b/types/highland/highland-tests.ts index cc61fcf92d..07a71e22b0 100644 --- a/types/highland/highland-tests.ts +++ b/types/highland/highland-tests.ts @@ -305,7 +305,7 @@ barStream = barStreamStream.sequence(); barStream = fooStream.series(); -barStream = fooStream.through(x => bar); +bar = fooStream.through(x => bar); barStream = fooStream.through(readwritable); fooStream = fooStream.zip(fooStream); diff --git a/types/highland/index.d.ts b/types/highland/index.d.ts index b6372f799a..825c0a1a6b 100644 --- a/types/highland/index.d.ts +++ b/types/highland/index.d.ts @@ -1172,7 +1172,7 @@ declare namespace Highland { * console.log(err); // => SyntaxError: Unexpected token z * }); */ - through(f: (x: R) => U): Stream; + through(f: (x: R) => U): U; through(thru: NodeJS.ReadWriteStream): Stream;