UNPKG

@types/proxy-addr

Version:
36 lines (26 loc) 1.22 kB
# 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. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proxy-addr/index.d.ts) ````ts /// <reference types="node" /> 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: Tue, 07 Nov 2023 09:09:39 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [BendingBender](https://github.com/BendingBender).