Add empty send() method for superagent

This commit is contained in:
Adam Babcock
2015-08-08 15:40:29 -05:00
parent 8de599097a
commit e40d4a62f5
2 changed files with 6 additions and 0 deletions

View File

@@ -56,6 +56,11 @@ request
.delete('/user/1')
.end(callback);
request
.delete('/user/1')
.send()
.end(callback);
request('/search')
.end(callback);

View File

@@ -97,6 +97,7 @@ declare module "superagent" {
redirects(n: number): Req;
send(data: string): Req;
send(data: Object): Req;
send(): Req;
set(field: string, val: string): Req;
set(field: Object): Req;
timeout(ms: number): Req;