Installation
npm install --save @types/proxy-addr
Summary
This package contains type definitions for proxy-addr (https://github.com/jshttp/proxy-addr#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proxy-addr.
import { IncomingMessage } from "http";
export = proxyAddr;
declare function proxyAddr(
req: IncomingMessage,
trust: proxyAddr.Address | proxyAddr.Address[] | ((addr: string, i: number) => boolean),
): string;
declare namespace proxyAddr {
function all(req: IncomingMessage, trust?: Address | Address[] | ((addr: string, i: number) => boolean)): string[];
function compile(val: Address | Address[]): (addr: string, i: number) => boolean;
type Address = "loopback" | "linklocal" | "uniquelocal" | string;
}
Additional Details
- Last updated: Sun, 24 Sep 2023 06:37:28 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by BendingBender.