mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix errors.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user