mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Set config as optional parameter
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ 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;
|
||||
declare function proxy(contextOrUri: string | string[] | proxy.Filter, config?: proxy.Config): proxy.Proxy;
|
||||
|
||||
declare namespace proxy {
|
||||
type Filter = (pathanme: string, req: http.IncomingMessage) => boolean;
|
||||
|
||||
Reference in New Issue
Block a user