1 | /// <reference types="node" />
|
2 |
|
3 | import stream = require("stream");
|
4 |
|
5 | declare function through(
|
6 | write?: (data: any) => void,
|
7 | end?: () => void,
|
8 | opts?: {
|
9 | autoDestroy: boolean;
|
10 | },
|
11 | ): through.ThroughStream;
|
12 |
|
13 | declare namespace through {
|
14 | export interface ThroughStream extends stream.Transform {
|
15 | autoDestroy: boolean;
|
16 | queue: (chunk: any) => any;
|
17 | }
|
18 | }
|
19 |
|
20 | export = through;
|