node : readable stream pipe can be piped further closes #1030

This commit is contained in:
basarat
2013-09-10 19:32:21 +10:00
parent eb0cacfed1
commit d0139df89d
2 changed files with 20 additions and 7 deletions
+2 -2
View File
@@ -998,7 +998,7 @@ declare module "stream" {
pause(): void;
resume(): void;
destroy(): void;
pipe(destination: WritableStream, options?: { end?: boolean; }): void;
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
}
export interface ReadableOptions {
@@ -1014,7 +1014,7 @@ declare module "stream" {
pause(): void;
resume(): void;
destroy(): void;
pipe(destination: WritableStream, options?: { end?: boolean; }): void;
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
_read(): void;
push(chunk: any, encoding?: string): boolean;
}