UNPKG

682 BTypeScriptView Raw
1// Type definitions for through
2// Project: https://github.com/dominictarr/through
3// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference path="../node/node.d.ts" />
7
8declare module "through" {
9 import stream = require("stream");
10
11 function through(write?: (data: any) => void,
12 end?: () => void,
13 opts?: {
14 autoDestroy: boolean;
15 }): through.ThroughStream;
16
17 namespace through {
18 export interface ThroughStream extends stream.Transform {
19 autoDestroy: boolean;
20 }
21 }
22
23 export = through;
24}