mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
changed local pick name
This commit is contained in:
parent
e00c71172a
commit
4fb702c02c
4
types/node/index.d.ts
vendored
4
types/node/index.d.ts
vendored
@ -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<T, K extends keyof T> = {
|
||||
type PortedPick<T, K extends keyof T> = {
|
||||
[P in K]: T[P];
|
||||
};
|
||||
|
||||
export type RequestOptions = http.RequestOptions & Pick<tls.ConnectionOptions, extendedRequestKeys>;
|
||||
export type RequestOptions = http.RequestOptions & PortedPick<tls.ConnectionOptions, extendedRequestKeys>;
|
||||
|
||||
export interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
||||
rejectUnauthorized?: boolean;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user