Files
DefinitelyTyped/method-override/method-override.d.ts
2016-09-25 11:46:06 +02:00

29 lines
743 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
/// <reference path="../express/express.d.ts" />
declare namespace Express {
export interface Request {
originalMethod?: string;
}
}
declare module "method-override" {
import express = require('express');
namespace e {
export interface MethodOverrideOptions {
methods: string[];
}
}
function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
export = e;
}