mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
change property types from 'Object' to 'any' so that their anonymous contents can be inspected, add missing 'files' property
This commit is contained in:
@@ -9,4 +9,5 @@ agent
|
||||
.end((err, res) => {
|
||||
if (err) throw err;
|
||||
if (res.status !== 200) throw new Error('bad status ' + res.status);
|
||||
if (res.body.foo === 'bar') throw new Error('bad body');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user