UNPKG

817 BTypeScriptView Raw
1import { Filter, RequestHandler } from '../types';
2import { LegacyOptions } from './types';
3import type * as http from 'http';
4/**
5 * @deprecated
6 * This function is deprecated and will be removed in a future version.
7 *
8 * Use {@link createProxyMiddleware} instead.
9 */
10export declare function legacyCreateProxyMiddleware<TReq = http.IncomingMessage, TRes = http.ServerResponse>(shortHand: string): RequestHandler<TReq, TRes>;
11export declare function legacyCreateProxyMiddleware<TReq = http.IncomingMessage, TRes = http.ServerResponse>(legacyOptions: LegacyOptions<TReq, TRes>): RequestHandler<TReq, TRes>;
12export declare function legacyCreateProxyMiddleware<TReq = http.IncomingMessage, TRes = http.ServerResponse>(legacyContext: Filter<TReq>, legacyOptions: LegacyOptions<TReq, TRes>): RequestHandler<TReq, TRes>;