From 52ee72c24ca35d99bd876d20de674aef840b2b0b Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Fri, 8 Jun 2018 09:58:35 -0700 Subject: [PATCH] plugin function expects SuperAgentRequest the plugin function actually takes a SuperAgentRequest, which includes properties like url, method, cookies, and agent. --- types/superagent/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/superagent/index.d.ts b/types/superagent/index.d.ts index 7daf5f47dc..e5a52ce3cd 100644 --- a/types/superagent/index.d.ts +++ b/types/superagent/index.d.ts @@ -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';