Expose agent on supertest and cookie methods on superagent

This commit is contained in:
John Purcell
2014-03-19 13:03:19 -04:00
parent 429cfd875e
commit ab5886b01f
3 changed files with 20 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ declare module "superagent" {
unsubscribe(url: string, callback?: (err: Error, res: Response) => void): Request;
patch(url: string, callback?: (err: Error, res: Response) => void): Request;
parse(fn: Function): Request;
saveCookies(res: Response): void;
attachCookies(req: Request): void;
}
export function agent(): Agent;