mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
605 B
TypeScript
24 lines
605 B
TypeScript
// Type definitions for through
|
|
// Project: https://github.com/dominictarr/through
|
|
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar/>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
/// <reference path="../node/node.d.ts" />
|
|
|
|
declare module "through" {
|
|
import stream = require("stream");
|
|
|
|
function through(write?: (data) => void,
|
|
end?: () => void,
|
|
opts?: {
|
|
autoDestroy: boolean;
|
|
}): through.ThroughStream;
|
|
|
|
module through {
|
|
export interface ThroughStream extends stream.Transform {
|
|
autoDestroy: boolean;
|
|
}
|
|
}
|
|
|
|
export = through;
|
|
} |