mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
node: now modules depend on stream.* when possible
This commit is contained in:
committed by
Bart van der Schoor
parent
d100d104c6
commit
c52e7bdf63
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user