From 038e845a2341521c3b41bba79ca273117bbbe6bf Mon Sep 17 00:00:00 2001 From: Marek Urbanowicz Date: Wed, 24 Oct 2018 18:06:54 +0200 Subject: [PATCH] Improve agentOptions for request library Definitely type all AgentOptions --- types/request/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/request/index.d.ts b/types/request/index.d.ts index 60e24b7692..676156daaa 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for request 2.47 +// Type definitions for request 2.48 // Project: https://github.com/request/request // Definitions by: Carlos Ballesteros Velasco , // bonnici , @@ -8,6 +8,7 @@ // Jon Stevens , // Matt R. Wilson // Jose Colella +// Marek Urbanowicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -24,6 +25,7 @@ import FormData = require('form-data'); import net = require('net'); import tough = require('tough-cookie'); import { Url } from 'url'; +import { SecureContextOptions } from 'tls'; declare namespace request { interface RequestAPI { @@ -132,7 +134,7 @@ declare namespace request { jsonReplacer?: (key: string, value: any) => any; multipart?: RequestPart[] | Multipart; agent?: http.Agent | https.Agent; - agentOptions?: any; + agentOptions?: SecureContextOptions; agentClass?: any; forever?: any; host?: string;