add stream.Stream type

This commit is contained in:
Horiuchi_H
2014-08-22 12:37:27 +09:00
parent 19e6407072
commit a38d60a3dd
2 changed files with 16 additions and 2 deletions

4
node/node.d.ts vendored
View File

@@ -1121,6 +1121,10 @@ declare module "crypto" {
declare module "stream" {
import events = require("events");
export interface Stream extends events.EventEmitter {
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
}
export interface ReadableOptions {
highWaterMark?: number;
encoding?: string;