UNPKG

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