diff --git a/through2/through2-0.4.2.d.ts b/through2/through2-0.4.2.d.ts new file mode 100644 index 000000000..7481fa910 --- /dev/null +++ b/through2/through2-0.4.2.d.ts @@ -0,0 +1,26 @@ +// Type definitions for through2 v 0.4.2 +// Project: https://github.com/rvagg/through2 +// Definitions by: Bart van der Schoor , jedmao +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module 'through2' { + + import stream = require('stream'); + + function through2(transform?: (chunk: any, enc: string, callback: () => void) => void, flush?: () => void): NodeJS.ReadWriteStream; + + function through2(opts?: stream.DuplexOptions, transform?: (chunk: any, enc: string, callback: () => void) => void, flush?: () => void): NodeJS.ReadWriteStream; + + module through2 { + + export function obj(transform?: (chunk: any, enc: string, callback: () => void) => void, flush?: () => void): NodeJS.ReadWriteStream; + + export function push(data: any): void; + + } + + export = through2; + +}