diff --git a/node/node.d.ts b/node/node.d.ts index 0084aa3e3..bcbef2ba1 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -95,7 +95,7 @@ interface ReadableStream extends EventEmitter { pause(): void; resume(): void; destroy(): void; - pipe(destination: WritableStream, options?: { end?: boolean; }): void; + pipe(destination: T, options?: { end?: boolean; }): T; } interface NodeProcess extends EventEmitter {