# @types/method-override

> TypeScript definitions for method-override

Latest version **3.0.0** (published 2024-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/method-override
pnpm add @types/method-override
yarn add @types/method-override
bun add @types/method-override
```

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-12-02 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Recent versions

- 3.0.0 (latest) — 2024-12-02
- 0.0.35 (ts4.5) — 2023-11-07
- 0.0.32 (ts3.6) — 2021-07-06
- 0.0.31 (ts2.3) — 2017-10-25
- 0.0.30 (ts2.0) — 2017-08-21
- 0.0.34 — 2023-10-18
- 0.0.33 — 2023-09-27
- 0.0.29 — 2016-10-05
- 0.0.28 — 2016-09-19
- 0.0.27 — 2016-07-14
- 0.0.26-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-07-01
- … 4 more at https://npm.io/package/@types/method-override/versions

## README

# Installation
> `npm install --save @types/method-override`

# Summary
This package contains type definitions for method-override (https://github.com/expressjs/method-override).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/method-override.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/method-override/index.d.ts)
````ts
declare namespace Express {
    export interface Request {
        originalMethod?: string | undefined;
    }
}

import express = require("express");

declare namespace e {
    export interface MethodOverrideOptions {
        methods: string[];
    }
}

declare function e(
    getter?: string | ((req: express.Request, res: express.Response) => string),
    options?: e.MethodOverrideOptions,
): express.RequestHandler;

export = e;

````

### Additional Details
 * Last updated: Mon, 02 Dec 2024 21:33:37 GMT
 * Dependencies: none

 * Peer dependencies: [@types/express](https://npmjs.com/package/@types/express)

# Credits
These definitions were written by [Santi Albo](https://github.com/santialbo).

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