# @types/koa-proxy

> TypeScript definitions for koa-proxy

Latest version **1.0.8** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/koa-proxy
pnpm add @types/koa-proxy
yarn add @types/koa-proxy
bun add @types/koa-proxy
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2025-10-24 |
| First published | 2019-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/koa-proxy
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-proxy
- npm.io page: https://npm.io/package/@types/koa-proxy

## Dependencies (1)

- [@types/koa](https://npm.io/package/@types/koa.md) *

## Recent versions

- 1.0.8 (latest) — 2025-10-24
- 1.0.7 (ts5.1) — 2023-11-07
- 1.0.4 (ts4.3) — 2021-12-24
- 1.0.3 (ts3.7) — 2021-09-11
- 1.0.2 (ts3.6) — 2021-07-08
- 1.0.1 (ts3.5) — 2019-10-22
- 1.0.6 — 2023-10-18
- 1.0.5 — 2023-09-14
- 1.0.0 — 2019-07-31

## README

# Installation
> `npm install --save @types/koa-proxy`

# Summary
This package contains type definitions for koa-proxy (https://github.com/edorivai/koa-proxy#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-proxy.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-proxy/index.d.ts)
````ts
import Koa = require("koa");

declare namespace proxy {
    type RequestOptionFunc = (request: Koa.Request, opts: any) => any;

    interface IndexedObject {
        [key: string]: string;
    }

    type MapFunction = (path: string) => string;

    interface Options {
        host?: string;
        encoding?: string | null;
        url?: string;
        map?: IndexedObject | MapFunction;
        match?: RegExp;
        jar?: boolean;
        suppressRequestHeaders?: string[]; // case-insensitive
        suppressResponseHeaders?: string[]; // case-insensitive
        overrideResponseHeaders?: any;
        requestOptions?: RequestOptionFunc | IndexedObject;
        followRedirect?: boolean;
        yieldNext?: boolean;
    }
}

declare function proxy(options?: proxy.Options): Koa.Middleware;

export = proxy;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/koa-proxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
