mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 01:39:07 +00:00
Merge pull request #19120 from lookfirst/request-tunnel-option
[request] Optional tunnel boolean in request options
This commit is contained in:
3
types/request/index.d.ts
vendored
3
types/request/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for request 2.0
|
||||
// Project: https://github.com/request/request
|
||||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, bonnici <https://github.com/bonnici>, Bart van der Schoor <https://github.com/Bartvds>, Joe Skeen <https://github.com/joeskeen>, Christopher Currens <https://github.com/ccurrens>
|
||||
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, bonnici <https://github.com/bonnici>, Bart van der Schoor <https://github.com/Bartvds>, Joe Skeen <https://github.com/joeskeen>, Christopher Currens <https://github.com/ccurrens>, Jon Stevens <https://github.com/lookfirst>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// Imported from: https://github.com/soywiz/typescript-node-definitions/d.ts
|
||||
@@ -142,6 +142,7 @@ declare namespace request {
|
||||
timeout?: number;
|
||||
localAddress?: string;
|
||||
proxy?: any;
|
||||
tunnel?: boolean;
|
||||
strictSSL?: boolean;
|
||||
rejectUnauthorized?: boolean;
|
||||
time?: boolean;
|
||||
|
||||
@@ -120,6 +120,7 @@ var options: request.Options = {
|
||||
pool: value,
|
||||
timeout: num,
|
||||
proxy: value,
|
||||
tunnel: bool,
|
||||
strictSSL: bool,
|
||||
rejectUnauthorized: false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user