mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00: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:
parent
61c0559fd7
commit
87768603b0
@ -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');
|
||||
});
|
||||
|
||||
5
superagent/superagent.d.ts
vendored
5
superagent/superagent.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user