Add descriptions for demux and compose

This commit is contained in:
Jerry Kurian
2019-09-09 15:54:29 -04:00
parent d33d8dcad3
commit 7aeea4815a
5 changed files with 60 additions and 134 deletions

View File

@@ -10,8 +10,7 @@ export function collect(
): Transform {
const collected: any[] = [];
return new Transform({
readableObjectMode: options.objectMode,
writableObjectMode: options.objectMode,
...options,
transform(data, encoding, callback) {
collected.push(data);
callback();