@@ -121,11 +121,15 @@ const schema = require("./options.json");
121
121
* @callback ByPass
122
122
* @param {Request } req
123
123
* @param {Response } res
124
- * @param {ProxyConfigArray } proxyConfig
124
+ * @param {ProxyConfigArrayItem } proxyConfig
125
125
*/
126
126
127
127
/**
128
- * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass } ProxyConfigArray
128
+ * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass } ProxyConfigArrayItem
129
+ */
130
+
131
+ /**
132
+ * @typedef {ProxyConfigArrayItem[] } ProxyConfigArray
129
133
*/
130
134
131
135
/**
@@ -194,7 +198,7 @@ const schema = require("./options.json");
194
198
* @property {boolean } [http2]
195
199
* @property {"http" | "https" | "spdy" | string | ServerConfiguration } [server]
196
200
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration } [webSocketServer]
197
- * @property {ProxyConfigMap | ProxyConfigArray | ProxyArray } [proxy]
201
+ * @property {ProxyConfigMap | ProxyConfigArray | ProxyConfigArrayItem | ProxyArray } [proxy]
198
202
* @property {boolean | string | Open | Array<string | Open> } [open]
199
203
* @property {boolean } [setupExitSignals]
200
204
* @property {boolean | ClientConfiguration } [client]
@@ -2130,7 +2134,7 @@ class Server {
2130
2134
const { createProxyMiddleware } = require ( "http-proxy-middleware" ) ;
2131
2135
2132
2136
/**
2133
- * @param {ProxyConfigArray } proxyConfig
2137
+ * @param {ProxyConfigArrayItem } proxyConfig
2134
2138
* @returns {RequestHandler | undefined }
2135
2139
*/
2136
2140
const getProxyMiddleware = ( proxyConfig ) => {
0 commit comments