mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
To use the definition inline
This commit is contained in:
Vendored
+2
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user