// Type definitions for through // Project: https://github.com/dominictarr/through // Definitions by: Andrew Gaspar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import stream = require('stream'); declare function through( write?: (data: any) => void, end?: () => void, opts?: { autoDestroy: boolean; }, ): through.ThroughStream; declare namespace through { export interface ThroughStream extends stream.Transform { autoDestroy: boolean; queue: (chunk: any) => any; } } export = through;