mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
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:
Vendored
+1
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user