UNPKG

676 BTypeScriptView Raw
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
7declare namespace Express {
8 export interface Request {
9 originalMethod?: string | undefined;
10 }
11}
12
13import express = require('express');
14
15declare namespace e {
16 export interface MethodOverrideOptions {
17 methods: string[];
18 }
19}
20
21declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
22
23export = e;