UNPKG

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