mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
allow method chaining with .on()
This commit is contained in:
@@ -197,3 +197,10 @@ r.post(str);
|
||||
r(options);
|
||||
r.get(options);
|
||||
r.post(options);
|
||||
|
||||
request
|
||||
.get('http://example.com/example.png')
|
||||
.on('response', function(response) {
|
||||
// check response
|
||||
})
|
||||
.pipe(request.put('http://another.com/another.png'));
|
||||
|
||||
Reference in New Issue
Block a user