DefinitelyTyped/through/through.d.ts
2016-03-17 21:06:54 +09:00

25 lines
658 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 path="../node/node.d.ts" />
declare module "through" {
import stream = require("stream");
function through(write?: (data: any) => void,
end?: () => void,
opts?: {
autoDestroy: boolean;
}): through.ThroughStream;
namespace through {
export interface ThroughStream extends stream.Transform {
autoDestroy: boolean;
}
}
export = through;
}