1 | // Type definitions for method-override
|
2 | // Project: https://github.com/expressjs/method-override
|
3 | // Definitions by: Santi Albo <https://github.com/santialbo>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.3
|
6 |
|
7 | declare namespace Express {
|
8 | export interface Request {
|
9 | originalMethod?: string;
|
10 | }
|
11 | }
|
12 |
|
13 | import express = require('express');
|
14 |
|
15 | declare namespace e {
|
16 | export interface MethodOverrideOptions {
|
17 | methods: string[];
|
18 | }
|
19 | }
|
20 |
|
21 | declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
|
22 |
|
23 | export = e;
|