This commit is contained in:
Jerry Kurian
2019-09-26 09:23:09 -04:00
parent 70edee51c4
commit a11aa10d16
12 changed files with 36 additions and 56 deletions

View File

@@ -1,9 +1,6 @@
import { Transform } from "stream";
import { ThroughOptions } from "./baseDefinitions";
import { Transform, TransformOptions } from "stream";
export function collect(
options: ThroughOptions = { objectMode: false },
): Transform {
export function collect(options: TransformOptions = {}): Transform {
const collected: any[] = [];
return new Transform({
...options,