From 4fb702c02c9c3115b7cc8a174db2bc02b8fbfcd5 Mon Sep 17 00:00:00 2001 From: Huw McNamara Date: Tue, 6 Feb 2018 20:03:20 +0000 Subject: [PATCH] changed local pick name --- types/node/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 8cc5307993..1792eccdac 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -1756,11 +1756,11 @@ declare module "https" { "servername"; // as many type definitions rely on node, redefine Pick here instead of updating all of them to typescript 2.1 - type Pick = { + type PortedPick = { [P in K]: T[P]; }; - export type RequestOptions = http.RequestOptions & Pick; + export type RequestOptions = http.RequestOptions & PortedPick; export interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { rejectUnauthorized?: boolean;