To use the definition inline

This commit is contained in:
Andrea Zucchini
2016-09-25 11:46:06 +02:00
parent 6b5e394f6f
commit 1dc7874860

View File

@@ -21,9 +21,8 @@ declare module "method-override" {
}
type stringType = string;
type functionType = (req: express.Request, res: express.Response) => string;
function e(getter?: stringType | functionType, options?: e.MethodOverrideOptions): express.RequestHandler;
function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
export = e;
}