allow method chaining with .on()

This commit is contained in:
pspi
2014-11-17 08:26:47 +02:00
parent 71e7549601
commit 26c17dce8d
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -110,6 +110,8 @@ declare module 'request' {
oauth(oauth: OAuthOptions): Request;
jar(jar: CookieJar): Request;
on(event: string, listener: Function): Request;
write(buffer: Buffer, cb?: Function): boolean;
write(str: string, cb?: Function): boolean;
write(str: string, encoding: string, cb?: Function): boolean;