Override set method for supertest Request

This commit is contained in:
Václav Oborník
2014-03-20 08:03:46 +01:00
parent efc61c9d55
commit 077b00386c

View File

@@ -19,6 +19,8 @@ declare module "supertest" {
expect(body: Object, callback?: (err: Error, res: superagent.Response) => void): Test;
expect(field: string, val: string, callback?: (err: Error, res: superagent.Response) => void): Test;
expect(field: string, val: RegExp, callback?: (err: Error, res: superagent.Response) => void): Test;
set(field: string, val: string): Test;
set(field: Object): Test;
}
interface SuperTest {