plugin function expects SuperAgentRequest

the plugin function actually takes a SuperAgentRequest, which includes properties like url, method, cookies, and agent.
This commit is contained in:
Danny Cochran
2018-06-08 09:58:35 -07:00
committed by GitHub
parent ebadb7272e
commit 52ee72c24c

View File

@@ -150,7 +150,7 @@ declare namespace request {
write(data: string | Buffer, encoding?: string): this;
}
type Plugin = (req: Request) => void;
type Plugin = (req: SuperAgentRequest) => void;
interface ProgressEvent {
direction: 'download' | 'upload';