node: now modules depend on stream.* when possible

This commit is contained in:
Paul Loyd
2014-04-28 18:32:37 +02:00
committed by Bart van der Schoor
parent d100d104c6
commit c52e7bdf63
8 changed files with 57 additions and 54 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
/// <reference path='../node/node.d.ts' />
declare module "superagent" {
import stream = require('stream');
export interface Response {
text: string;
body: any;
@@ -44,7 +45,7 @@ declare module "superagent" {
send(data: Object): Request;
write(data: string, encoding: string): boolean;
write(data: Buffer, encoding: string): boolean;
pipe(stream: WritableStream, options?: Object): WritableStream;
pipe(stream: NodeWritableStream, options?: Object): stream.Writable;
buffer(val: boolean): Request;
timeout(ms: number): Request;
clearTimeout(): Request;