Commit Graph

3 Commits

Author SHA1 Message Date
Ben Chauvette
55d9114bbd Improve through2 declarations (#11499)
* [through2] Fix typos

* [through2] Change return types to stream.Transform

`through2` creates `stream.Transform`-flavored streams, so switching the return types to `stream.Transform` gives us richer typing information than using `NodeJS.ReadWriteStream`, which is missing methods (e.g. `stream.Transform#push`) and the ability to use object mode.

* [through2] Add through2.ctor method

* [through2] Update header and docs
2016-09-26 07:52:03 -07:00
Georgios Valotasios
cba118b92f Added callback definitions to throught2 2015-12-20 18:52:49 +01:00
Bart van der Schoor
cc82b36997 added defs for some (stream) utils 2014-05-26 14:31:30 +02:00