From 7f19306894ab00323764db8fe1dde4f0b76554c3 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Mon, 19 Nov 2018 02:12:59 +0000 Subject: [PATCH] Upgrade types for http-proxy-middleware to v0.19 (#30641) --- types/http-proxy-middleware/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/http-proxy-middleware/index.d.ts b/types/http-proxy-middleware/index.d.ts index 5db24429c9..b48214b8f6 100644 --- a/types/http-proxy-middleware/index.d.ts +++ b/types/http-proxy-middleware/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for http-proxy-middleware 0.17 +// Type definitions for http-proxy-middleware 0.19 // Project: https://github.com/chimurai/http-proxy-middleware // Definitions by: Zebulon McCorkle // BendingBender @@ -12,6 +12,7 @@ import * as net from "net"; import * as tls from "tls"; import * as connect from "connect"; import * as httpProxy from "http-proxy"; +import { Readable } from 'stream'; declare function proxy(config: proxy.Config): proxy.Proxy; declare function proxy(contextOrUri: string | string[] | proxy.Filter, config: proxy.Config): proxy.Proxy; @@ -52,13 +53,19 @@ declare namespace proxy { ignorePath?: boolean; localAddress?: string; changeOrigin?: boolean; + preserveHeaderKeyCase?: boolean; auth?: string; hostRewrite?: string; autoRewrite?: boolean; protocolRewrite?: string; cookieDomainRewrite?: false | string | { [domain: string]: string }; + cookiePathRewrite?: false | string | { [path: string]: string }; headers?: { [header: string]: string }; proxyTimeout?: number; + timeout?: number; + followRedirects?: boolean; + selfHandleResponse?: boolean; + buffer?: Readable; /** * @deprecated */