1 | # Installation
|
2 | > `npm install --save @types/method-override`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for method-override (https://github.com/expressjs/method-override).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/method-override.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/method-override/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for method-override
|
12 | // Project: https://github.com/expressjs/method-override
|
13 | // Definitions by: Santi Albo <https://github.com/santialbo>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 | // TypeScript Version: 2.3
|
16 |
|
17 | declare namespace Express {
|
18 | export interface Request {
|
19 | originalMethod?: string | undefined;
|
20 | }
|
21 | }
|
22 |
|
23 | import express = require('express');
|
24 |
|
25 | declare namespace e {
|
26 | export interface MethodOverrideOptions {
|
27 | methods: string[];
|
28 | }
|
29 | }
|
30 |
|
31 | declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
|
32 |
|
33 | export = e;
|
34 |
|
35 | ````
|
36 |
|
37 | ### Additional Details
|
38 | * Last updated: Tue, 06 Jul 2021 22:03:04 GMT
|
39 | * Dependencies: [@types/express](https://npmjs.com/package/@types/express)
|
40 | * Global values: none
|
41 |
|
42 | # Credits
|
43 | These definitions were written by [Santi Albo](https://github.com/santialbo).
|
44 |
|
\ | No newline at end of file |