mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Expose agent on supertest and cookie methods on superagent
This commit is contained in:
2
superagent/superagent.d.ts
vendored
2
superagent/superagent.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user