File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import RequestBase = require("../request-base");
1212import ResponseBase = require( "./response" ) ;
1313import { AgentOptions as SAgentOptions , CBHandler , URLType } from "../../types" ;
1414import { Request as Http2Request } from "./http2wrapper" ;
15+ import { AppendOptions } from "form-data" ;
1516
1617type HttpMethod < Req extends request . Request > =
1718 | ( ( url : URLType , callback ?: CBHandler ) => Req )
@@ -65,6 +66,7 @@ declare class SARequest extends Stream implements RequestBase {
6566 val :
6667 | ( string | number | boolean | Blob | Buffer | ReadStream )
6768 | Array < string | number | boolean | Blob | Buffer | ReadStream > ,
69+ options ?: AppendOptions | string ,
6870 ) : this;
6971 finally ( onfinally ?: ( ( ) => void ) | null ) : Promise < ResponseBase > ;
7072 get ( header : string ) : string ;
Original file line number Diff line number Diff line change 77 ],
88 "dependencies" : {
99 "@types/cookiejar" : " ^2.1.5" ,
10+ "@types/methods" : " ^1.1.4" ,
1011 "@types/node" : " *" ,
11- "@types/methods " : " ^1.1.4 "
12+ "form-data " : " ^4.0.0 "
1213 },
1314 "devDependencies" : {
1415 "@types/superagent" : " workspace:."
You can’t perform that action at this time.
0 commit comments