Skip to content

Commit 6fd069c

Browse files
committed
- Some fixes
1 parent 1574f69 commit 6fd069c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

should.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ declare interface any {
3535
a(name: string): any;
3636
status(code: number): any;
3737
header(field: string, value?: any): any;
38-
}
39-
38+
}
39+
4040
declare var should: any;

superagent.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ declare module "superagent" {
55

66
export interface Response {
77
text: string;
8-
header: any;
8+
//header: any;
9+
headers: any;
910
type: string;
1011
statusCode: number;
1112
req: any;
@@ -28,5 +29,6 @@ declare module "superagent" {
2829
end(callback: (err: Error, res: Response) => void): Request;
2930
}
3031

32+
export function agent(url?: string, cb?: (err: Error, res: Response) => void): Request;
3133
export function(url?: string, cb?: (err: Error, res: Response) => void): Request;
3234
}

supertest.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare module "supertest" {
1313
assert(res: any, cb?: (err: Error, res: superagent.Response) => void);
1414
}
1515

16+
//export function agent(app: any): TestRequest;
1617
export function(app: any) : TestRequest;
1718
export function(url?: string, cb?: (res: superagent.Response) => void) : TestRequest;
1819
}

0 commit comments

Comments
 (0)