[node] Rolled back node stream.readable.pipe() method according to official API

Read here:
https://github.com/nodejs/node/blob/master/lib/_stream_readable.js#L612
This commit is contained in:
Hinell
2017-01-12 02:44:29 +03:00
parent 1c1fc8eea2
commit b29bba7975

6
node/index.d.ts vendored
View File

@@ -285,7 +285,7 @@ declare namespace NodeJS {
pause(): this;
resume(): this;
isPaused(): boolean;
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): this;
pipe<T extends WritableStream>(destination: T, options?: { end?: boolean; }): T;
unpipe<T extends WritableStream>(destination?: T): this;
unshift(chunk: string): void;
unshift(chunk: Buffer): void;
@@ -3341,7 +3341,7 @@ declare module "stream" {
pause(): this;
resume(): this;
isPaused(): boolean;
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): this;
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
unpipe<T extends NodeJS.WritableStream>(destination?: T): this;
unshift(chunk: any): void;
wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream;
@@ -3531,7 +3531,7 @@ declare module "stream" {
pause(): this;
resume(): this;
isPaused(): boolean;
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): this;
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
unpipe<T extends NodeJS.WritableStream>(destination?: T): this;
unshift(chunk: any): void;
wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream;