DefinitelyTyped/types/through/index.d.ts
2017-08-20 15:37:53 -07:00

24 lines
585 B
TypeScript

// Type definitions for through
// Project: https://github.com/dominictarr/through
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
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;
}
}
export = through;