1 | declare namespace Express {
|
2 | export interface Request {
|
3 | originalMethod?: string | undefined;
|
4 | }
|
5 | }
|
6 |
|
7 | import express = require("express");
|
8 |
|
9 | declare namespace e {
|
10 | export interface MethodOverrideOptions {
|
11 | methods: string[];
|
12 | }
|
13 | }
|
14 |
|
15 | declare function e(
|
16 | getter?: string | ((req: express.Request, res: express.Response) => string),
|
17 | options?: e.MethodOverrideOptions,
|
18 | ): express.RequestHandler;
|
19 |
|
20 | export = e;
|