mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-03 12:00:40 +08:00
Expose agent on supertest and cookie methods on superagent
This commit is contained in:
1 parent
429cfd875e
commit
ab5886b01f
3 files changed
+20
No files matched your search
Vendored
+2
@@ -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