mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-30 17:04:20 +08:00
To use the definition inline
This commit is contained in:
5
method-override/method-override.d.ts
vendored
5
method-override/method-override.d.ts
vendored
@@ -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