/// <reference path="./connect-flash.d.ts" />

import express = require('express');
import flash = require('connect-flash');

var app = express();

app.use(flash());
app.use(flash({
    unsafe: false
}));

app.use(function(req: Express.Request, res: Express.Response, next: Function) {
    req.flash('Message');
    req.flash('info', 'Message');
});

/// <reference path="./connect-flash.d.ts" />

import express = require('express');
import flash = require('connect-flash');

var app = express();

app.use(flash());
app.use(flash({
    unsafe: false
}));

app.use(function(req: Express.Request, res, next) {
    req.flash('Message');
    req.flash('info', 'Message');
});

--- 
+++ 
@@ -10,7 +10,7 @@
     unsafe: false
 }));
 
-app.use(function(req: Express.Request, res, next) {
+app.use(function(req: Express.Request, res: Express.Response, next: Function) {
     req.flash('Message');
     req.flash('info', 'Message');
 });
Fix Travis CI failing because of "error TS7006: Parameter 'res' and 'next' implicitly have an 'any' type."
