diff --git a/types/request/index.d.ts b/types/request/index.d.ts index 2e65c85253..08a266cbf8 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -143,6 +143,7 @@ declare namespace request { localAddress?: string; proxy?: any; strictSSL?: boolean; + rejectUnauthorized?: boolean; time?: boolean; gzip?: boolean; preambleCRLF?: boolean; diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index 2ee98bdf1d..7ba7421fd0 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -115,7 +115,8 @@ var options: request.Options = { pool: value, timeout: num, proxy: value, - strictSSL: bool + strictSSL: bool, + rejectUnauthorized: false }; // Below line has compile error, use OptionsWithUri or OptionsWithUrl instead. See #7979.