mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
[request] Support jsonReviver and jsonReplacer options
This commit is contained in:
2
request/index.d.ts
vendored
2
request/index.d.ts
vendored
@@ -91,6 +91,8 @@ declare namespace request {
|
||||
qsStringifyOptions?: any;
|
||||
qsParseOptions?: any;
|
||||
json?: any;
|
||||
jsonReviver?: (key: string, value: any) => any;
|
||||
jsonReplacer?: (key: string, value: any) => any;
|
||||
multipart?: RequestPart[] | Multipart;
|
||||
agent?: http.Agent | https.Agent;
|
||||
agentOptions?: any;
|
||||
|
||||
@@ -91,6 +91,12 @@ var options: request.Options = {
|
||||
aws: aws,
|
||||
qs: obj,
|
||||
json: value,
|
||||
jsonReviver: (key: string, value: any) => {
|
||||
|
||||
},
|
||||
jsonReplacer: (key: string, value: any) => {
|
||||
|
||||
},
|
||||
multipart: value,
|
||||
agent: new http.Agent(),
|
||||
agentOptions: value,
|
||||
|
||||
Reference in New Issue
Block a user