Merge pull request #8679 from kimamula/fix_express_NextFunction

fix express.NextFunction
This commit is contained in:
Masahiro Wakame
2016-03-26 22:03:57 +09:00
2 changed files with 4 additions and 2 deletions
+1 -2
View File
@@ -783,8 +783,7 @@ declare module "express-serve-static-core" {
}
interface NextFunction {
(): void;
(err: any): void;
(err?: any): void;
}
interface ErrorRequestHandler {
+3
View File
@@ -68,3 +68,6 @@ app.use((req, res, next) => {
app.use(router);
app.listen(3000);
const next: express.NextFunction = () => {};
const nextWithArgument: express.NextFunction = (err: any) => {};