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

This commit is contained in:
basarat committed 2013-09-10 19:32:21 +10:00
1 parent eb0cacfed1
commit d0139df89d
2 files changed
+20 -7

No files matched your search

+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;
}