mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08: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:
2
types/superagent/index.d.ts
vendored
2
types/superagent/index.d.ts
vendored
@@ -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