change property types from 'Object' to 'any' so that their anonymous contents can be inspected, add missing 'files' property

This commit is contained in:
Alex Varju 2013-09-11 10:30:00 -07:00
parent 61c0559fd7
commit 87768603b0
2 changed files with 4 additions and 2 deletions

View File

@ -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');
});

View File

@ -8,8 +8,9 @@
declare module "superagent" {
export interface Response {
text: string;
body: Object;
header: Object;
body: any;
files: any;
header: any;
type: string;
charset: string;
status: number;