mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
25 lines
640 B
TypeScript
25 lines
640 B
TypeScript
// Type definitions for method-override
|
|
// Project: https://github.com/expressjs/method-override
|
|
// Definitions by: Santi Albo <https://github.com/santialbo/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
|
|
declare namespace Express {
|
|
export interface Request {
|
|
originalMethod?: string;
|
|
}
|
|
}
|
|
|
|
import express = require('express');
|
|
|
|
declare namespace e {
|
|
export interface MethodOverrideOptions {
|
|
methods: string[];
|
|
}
|
|
}
|
|
|
|
declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
|
|
|
|
export = e;
|