Fix errors.

This commit is contained in:
Cyril Schumacher
2015-12-08 10:26:56 +01:00
parent 5111e01478
commit 784857f638
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ app.use(haltOnTimedout);
// Add your routes here, etc.
function haltOnTimedout(req, res, next) {
function haltOnTimedout(req: express.Request, res: express.Response, next: Function) {
if (!req.timedout) {
next();
}
+1 -1
View File
@@ -1,6 +1,6 @@
// Type definitions for connect-timeout
// Project: https://github.com/expressjs/timeout
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher/>
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../express/express.d.ts" />